AlanCoding
41940687f1
Pass existing object references within access methods
...
This avoids re-loading objects from the database in our
chain of permission checking, wherever possible.
access.py is equiped to handle object references instead
of pk ints, and permissions.py is changed to pass those refs.
2017-09-06 16:34:00 -07:00
Wayne Witzel III
aff084e1f6
Update permissions/RBAC for updates
2017-05-11 14:01:32 -04:00
Ryan Petrello
8c1de7f109
add an API endpoint for testing external log aggregrator connectivity
...
see: #5164
2017-03-09 13:19:56 -05:00
Chris Meyers
ef3a3b3b2f
super-user requests to HostDetail go through rbac
2017-01-27 10:51:26 -05:00
Chris Meyers
e09a0fb886
ensure manually modifying hosts adhears to license
...
* Super user or not, don't allow adding NOR editing (changing the name
of) a host to exceed the host license count.
2017-01-26 12:13:06 -05:00
Aaron Tan
9e4655419e
Fix flake8 E302 errors.
2016-11-15 20:59:39 -05:00
Chris Church
c18b6c1352
Add support for capturing stdout associated with job events and ad hoc command events.
...
* New event types for stdout lines not associated with a callback event.
* New stdout, start_line, end_line and verbosity fields for job/ahc events.
* Callback plugins to wrap Ansible default/minimal stdout callbacks and embed callback event data using ANSI escape sequences.
* Callback plugin library to wrap ansible.display.Display class methods.
* Output filter to extract event data from stdout and create job/ahc events.
* Update stdout formats to strip new ANSI escape sequences.
2016-10-28 21:58:24 -04:00
AlanCoding
57abd438c8
make user_capabilities validation front-loaded, try to run tests
2016-09-22 10:36:30 -04:00
AlanCoding
0933a91174
Merge branch 'devel' into can_CRUD
2016-09-12 08:56:47 -04:00
AlanCoding
0151967e9c
selectively show POST in options for inventory sublists
2016-08-30 11:16:49 -04:00
Wayne Witzel III
cef7f5a165
prevent non-superusers from adding orphan users
2016-08-18 09:55:20 -04:00
Akita Noek
b57739a800
Converted except T,e expressions to except T as e
2016-06-27 15:12:37 -04:00
AlanCoding
8fd18b882a
move logic for project udpate to access.py
2016-06-20 12:05:41 -04:00
Wayne Witzel III
db7cfb23f8
added False return for permission check
2016-06-14 09:53:07 -04:00
Wayne Witzel III
568de86423
anyone with read_role should be able to view the can_update flag for a project
2016-06-13 12:07:39 -04:00
Akita Noek
802a112106
Fixed project update permissions
...
Now folks in the update role can update a project as intended, yay!
#1929
2016-05-17 09:01:17 -04:00
Akita Noek
90424eb4b0
Removed pirate debugging statement
2016-03-23 16:24:50 -04:00
Akita Noek
1827de48af
more deprecated_users -> member_role.members fixes in tests
2016-03-17 08:56:02 -04:00
Akita Noek
8fb9ef37c2
Permission -> RBAC fixes in our inventory tests
2016-03-16 16:43:54 -04:00
Akita Noek
e770a1f225
Removed unused dashboard inventory graph, doubly useless now that active flag is gone
2016-03-16 15:56:23 -04:00
Akita Noek
6ea99583da
Mass active flag code removal
2016-03-15 09:29:55 -04:00
Chris Church
60224cdbe4
Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling.
2016-02-02 17:48:04 -05:00
John Mitchell
32d1c0e4db
fixed copyright date
2015-06-11 16:10:23 -04:00
Matthew Jones
b3da3b34a3
Changing some legal headers for python source files
2015-05-29 12:10:39 -04:00
Chris Church
1b1d43dc59
Prevent launching ad hoc commands when license has expired.
2015-05-21 14:13:37 -04:00
Chris Church
e2a6f100e1
Finish ad hoc command unit tests.
2015-04-05 18:32:04 -04:00
Chris Church
f7b8d510dc
Implement support for ad hoc commands.
2015-03-30 13:04:19 -04:00
Matthew Jones
bb3732b2c1
Cleaning up some flake8 errors, pyflakes in this case
2015-02-10 17:00:23 -05:00
Matthew Jones
1d76c1cd06
More pep8 goodness
2015-02-04 14:44:38 -05:00
Matthew Jones
6e6a709165
Fixing up some pep8 issues
2015-02-03 13:46:58 -05:00
Matthew Jones
e197bfeb01
Add a specific tower warnings file in the tower home directory.
...
Configure the api viewer to emit warnings for 4XX and 5XX status codes
into that file. Configure it for use on a production system. Closes AC-685
2014-04-04 16:48:56 -04:00
Chris Church
2b7af0a2ec
Happy new year!!!
2014-01-02 11:51:43 -05:00
Chris Church
98883e771f
Moved API code into separate Django app.
2013-11-04 15:44:49 -05:00