Akita Noek
6eb63285d2
Merge pull request #3010 from anoek/3006
...
Don't let normal users create orgless projects
2016-07-14 15:25:45 -04:00
Alan Rominger
7f168c7fe4
Merge pull request #3003 from AlanCoding/2988_team_cascade
...
Cascade delete teams from organization
2016-07-14 15:13:46 -04:00
Akita Noek
41d6d19bcb
Added patch tests for updating project organizations
2016-07-14 15:02:00 -04:00
AlanCoding
68d5a702af
Team organization field made non-null
2016-07-14 14:38:43 -04:00
Akita Noek
e18d142533
Don't let normal users create orgless projects
...
#3006
2016-07-14 14:29:34 -04:00
Matthew Jones
c852503163
Fix up some flake8 issues
2016-07-14 12:40:37 -04:00
Matthew Jones
00e55e3813
Add delete protection from certain objects
...
Certain objects can be sensitive to being deleted while jobs are
running, this protects those objects
2016-07-14 12:22:33 -04:00
AlanCoding
994a72967d
Cascade delete teams when their organization is deleted
2016-07-14 11:44:43 -04:00
Akita Noek
d39b9ff84f
Merge pull request #3001 from anoek/misc-fixes
...
Minor migration fixes
2016-07-14 11:23:22 -04:00
Akita Noek
6da6f48521
Updated tests to reflect credential access after migrations
2016-07-14 11:04:06 -04:00
Akita Noek
353e6100b9
Fix team credential role access in rbac migration
2016-07-14 09:54:41 -04:00
Akita Noek
bb14c9003d
Orphan handling in _old_access.py
2016-07-14 09:54:06 -04:00
Akita Noek
7b8c2f5b74
Normalized CustomInventoryScriptAccess.can_admin
2016-07-14 09:53:20 -04:00
AlanCoding
15f06ec9d3
allow system auditors to see orphan inventory scripts
2016-07-12 15:03:33 -04:00
AlanCoding
36286bcda2
notifier rbac test made consistent with others
2016-07-12 11:16:55 -04:00
AlanCoding
0fcc9abd69
allow org auditors to see notifications
2016-07-12 10:30:44 -04:00
AlanCoding
f68495cf58
allow org auditors to view notification templates
2016-07-12 09:18:04 -04:00
Wayne Witzel III
f9707c0ca1
Merge pull request #2922 from wwitzel3/issue-2508
...
ensure CustomInventoryScripts render correctly in the ActivityStream
2016-07-12 08:28:43 -04:00
Wayne Witzel III
f7e9d07dad
ensure CustomInventoryScripts render correctly in the ActivityStream
2016-07-11 15:25:35 -04:00
Akita Noek
1aeca1bebb
Merge pull request #2919 from anoek/2918
...
Several system auditor fixes to allow SA's to read and see things
2016-07-11 15:23:36 -04:00
Akita Noek
fd461a9768
Remove redundant check
2016-07-11 15:05:35 -04:00
Matthew Jones
2f843d15e0
Also forcefully kill the main process
2016-07-11 14:45:41 -04:00
Akita Noek
ec37703ce8
Allow SA's to read all notification templates
2016-07-11 14:44:36 -04:00
Matthew Jones
43c5105a57
No more Mr. Nice Tower
...
or how I learned to stop worrying and use SIGKILL.
Ansible has a bug that could potentially leave tower's jobs hanging
around indefinitely requiring manual shell intervention. I'm going to
put this here and until Ansible can get to the bottom of it.
2016-07-11 14:37:09 -04:00
Akita Noek
134b60dbed
Switch to explicit checks for system auditor for all applicable get_queryset calls
...
Solves #2918 and probably a couple other corner cases where orphan
situations could happen
2016-07-11 14:06:40 -04:00
Matthew Jones
6447434aa1
Hanele credential in notifications when deleted
2016-07-11 10:16:33 -04:00
Akita Noek
8bad695d26
Merge pull request #2886 from anoek/2804
...
Allow anyone who can read an inventory to see adhoc commands run on that inventory
2016-07-08 16:57:37 -04:00
Akita Noek
7733167693
Updated tests to reflect new expected behavior
2016-07-08 16:29:14 -04:00
AlanCoding
5027027aba
update behavior of access.py to newer DRF, display POST box for most list endpoints
2016-07-08 15:18:40 -04:00
Matthew Jones
ae9b4d3e58
Revert "Fix up hook conditions for rbac activity stream"
...
This reverts commit 36c14f83bcb11fcdbd31140ce182ab87e3db4644.
2016-07-08 13:13:22 -04:00
Matthew Jones
26b0d345f8
Notification guarding for deleted inventory
2016-07-08 13:04:42 -04:00
Matthew Jones
1c860b81ac
Fix up hook conditions for rbac activity stream
2016-07-08 13:03:34 -04:00
Matthew Jones
4c7f54cf72
Fix an activity stream associate with deleted obj
...
In some scenarios the activity stream associate could be invoked where
obj2 doesn't exist... the .get() will fail and tank the caller
preventing the save. This guards that and blocks the activity stream
event, saving the save (whew!)
2016-07-08 12:56:52 -04:00
Akita Noek
a0017eb074
Skip troublesome old job tests
...
These are actively being worked on by matburt and cmeyers, merging these
skips because the otherwise unrelated test failures are causing
headaches for the UI team.
2016-07-08 12:33:32 -04:00
Akita Noek
ee3d4dc42d
Allow anyone who can read an inventory to see adhoc commands run on that inventory
...
This implicitly solves one of the issues with #2804 , but is in general a
better behavior in general we believe.
2016-07-08 12:09:39 -04:00
Akita Noek
33547259e2
Merge pull request #2840 from anoek/test-porting
...
Ported several old tests to our new test system
2016-07-08 09:25:35 -04:00
Chris Church
2387ef0d3a
Merge pull request #2850 from wenottingham/wording-tweak
...
Tweak system job template wording
2016-07-07 16:18:33 -04:00
Bill Nottingham
e0d76ec378
Tweak system job wording.
2016-07-07 16:12:51 -04:00
Akita Noek
521fa13662
More mock fixes for organizations.py tests
2016-07-07 14:41:11 -04:00
AlanCoding
94c4db1d6a
Show the project list POST text box for org admins in API browser
2016-07-07 14:05:09 -04:00
Akita Noek
856ad80c21
Mock feature_enabled for organization tests
2016-07-07 13:53:21 -04:00
Chris Meyers
735a75729f
Revert "fixes Save with update_fields did not affect any rows"
...
This reverts commit c6d282fce27d23317d2649ccf00b75799dad1a86.
This didn't fix the underlying issue. The issue is that the inventory
object may have been deleted by the time save is called.
2016-07-07 12:09:16 -04:00
Akita Noek
55730f8730
Ported old/organizations.py tests
2016-07-07 11:58:38 -04:00
Akita Noek
e41614f4e7
flake8
2016-07-07 10:24:04 -04:00
Akita Noek
a42986894f
Made it so org auditors can see all users if ORG_ADMINS_CAN_SEE_ALL_USERS is true
...
Addresses #2706
2016-07-07 09:22:36 -04:00
Akita Noek
b6ec87f18a
Merge pull request #2820 from anoek/2806
...
Allow anyone who can read an inventory to see adhoc command run against said inventory
2016-07-07 09:09:16 -04:00
Akita Noek
51b959406a
Merge pull request #2819 from anoek/2744
...
Make it so users can see all roles on things they can see.
2016-07-06 16:16:42 -04:00
Alan Rominger
9476bc12e9
Merge pull request #2787 from AlanCoding/2733_credential_org_access
...
Processing of "organization" related field in credential can_change
2016-07-06 15:43:17 -04:00
AlanCoding
5df846eb0a
remove unnecessary fixture from org_credential
2016-07-06 15:21:57 -04:00
Alan Rominger
70b9a48f82
Merge pull request #2739 from AlanCoding/2735_proj_access
...
Do not allow creating projects as foreign org admin
2016-07-06 15:09:43 -04:00