Commit Graph

426 Commits

Author SHA1 Message Date
Akita Noek
e237648f4c Merge pull request #1761 from anoek/migration-fixes
Migration fixes
2016-05-03 11:32:38 -04:00
Wayne Witzel III
573bc07c5d Merge pull request #1738 from wwitzel3/issue-1714
prevent a user from removing their own admin_role
2016-05-02 10:09:41 -04:00
Wayne Witzel III
18e42d442e Merge pull request #1734 from wwitzel3/team-roles-access
ensure change access for adding team roles
2016-05-02 10:09:08 -04:00
Wayne Witzel III
86ea6b115f Merge pull request #1739 from wwitzel3/issue-1531
fixing non-unique query combining
2016-05-02 10:08:18 -04:00
Akita Noek
29b55fa04d Moved access control from credential add view to access.py
as it should have always been. This messes up being able to post to
api/v1/users/:n/credentials and api/v1/teams/:n/credentials without
specifyign the user/team id in the post body, but looking at the old
code it looks like this might have always been the case, so whatevs..

This fixes a old v new access.py test "failure", and is better anyways..
2016-04-29 17:27:14 -04:00
Alan Rominger
293db554c5 Merge pull request #1662 from AlanCoding/1407_credential_post_fields_rebased
Allow credentials to be created in UI touch up documentation for owners
2016-04-29 12:33:59 -04:00
Wayne Witzel III
47561978d2 fixing non-unique query combining 2016-04-28 16:11:12 -04:00
Wayne Witzel III
1e432126cd prevent a user from removing their own admin_role 2016-04-28 15:39:56 -04:00
Wayne Witzel III
ef8eb712c6 added tests to assert team roles attach/unattach permissions, removed previous flawed fix 2016-04-28 15:15:26 -04:00
Wayne Witzel III
b6bbd4fa77 ensure change access for adding team roles 2016-04-28 13:43:49 -04:00
Chris Meyers
526e04a00c Merge pull request #1690 from chrismeyersfsu/fix-labels_disassociate
delete label on last disassociate
2016-04-27 13:21:14 -04:00
Chris Meyers
e449237d8a move delete last unattach mixin to job template sublabel 2016-04-27 12:07:57 -04:00
Wayne Witzel III
d418a09bfc Merge pull request #1700 from wwitzel3/issue-1429
Fixing CredentialList post access check
2016-04-27 09:10:26 -04:00
Wayne Witzel III
e78eb591db change permission, not admin permission 2016-04-26 15:57:49 -04:00
Wayne Witzel III
2b589228d3 Fixing CredentialList post access check 2016-04-26 14:36:22 -04:00
Alan Rominger
c1ee5910d1 Merge pull request #1670 from AlanCoding/1642_scan_JT_counts
Include scan jobs in organization's job template count
2016-04-26 11:05:25 -04:00
Chris Meyers
2f18a9f2c1 delete label on last disassociate 2016-04-25 17:20:07 -04:00
Akita Noek
3ffefd30a3 flake8 2016-04-25 14:43:03 -04:00
Akita Noek
30ed9ab740 Reverted cursor pagination for /roles/
Turns out it doesn't play well with our custom filters, and performance
is still tolerable with the normal pagination..
2016-04-25 14:29:05 -04:00
Akita Noek
d0e9044dad Enforce team access permissions on team/:n/roles 2016-04-25 14:29:05 -04:00
Akita Noek
4c15374b05 Optimized (user|team)/:n/roles/ 2016-04-25 14:29:05 -04:00
Akita Noek
754f8546a6 Switched /api/v1/roles/ to a cursor paginator so we don't have to do a count() on that potentially very large result set 2016-04-25 14:29:05 -04:00
AlanCoding
7ac59de75e scan jobs linked by inventory in org JT counts 2016-04-22 16:41:58 -04:00
Akita Noek
c18aa44ced Return Queryset instead of Manager fix 2016-04-22 13:48:58 -04:00
AlanCoding
f9415da6bf allow credentials to be created in UI, docs for special owner fields 2016-04-22 13:48:55 -04:00
Matthew Jones
42247fa3c1 Add job events top level api object 2016-04-21 15:30:35 -04:00
Matthew Jones
fcc9c1e6e4 Switch org projects list back to allowing create 2016-04-21 15:09:47 -04:00
Alan Rominger
5543448a43 Merge pull request #1562 from AlanCoding/1459_org_detail_fix
Fix index error generating organization detail view context
2016-04-19 10:13:15 -04:00
AlanCoding
5abde762ae updates to prompt-for tests and logic for new RBAC updates 2016-04-18 14:29:30 -04:00
AlanCoding
9c75ced9f8 Merge branch 'devel' of https://github.com/ansible/ansible-tower into 11th-hour 2016-04-18 14:12:13 -04:00
Alan Rominger
33500f5816 Merge pull request #1431 from AlanCoding/1136_prompt_for_all_things3
Allow prompting for several new runtime variables
2016-04-18 14:04:11 -04:00
AlanCoding
333730f30e make special case for no results slightly more clear 2016-04-18 10:51:27 -04:00
AlanCoding
500ebdbbd2 fix index error generating organization detail view context 2016-04-18 08:56:04 -04:00
Akita Noek
850e4c3ace Test fixes and a couple of view optimizations 2016-04-16 18:30:06 -04:00
Akita Noek
5e7b6ed084 fixes for api/test_credential.py 2016-04-15 16:29:22 -04:00
Akita Noek
8c8c8a624f Updates to views.py for RolePermission removal 2016-04-15 16:18:17 -04:00
AlanCoding
e0bd906de8 fill in extra_vars to content box even if ask_for_vars false and survey enabled 2016-04-15 14:59:20 -04:00
Akita Noek
fa10d562c1 Replaced get user permissions with get_roles_on_resource 2016-04-15 14:36:52 -04:00
Wayne Witzel III
d508254742 updater_role -> update_role 2016-04-15 11:01:35 -04:00
Wayne Witzel III
5bca1283b2 executor_role -> execute_role 2016-04-15 11:00:33 -04:00
AlanCoding
dc37f00d0a use parent serializer method to avoid API browser job access check 2016-04-13 15:19:10 -04:00
AlanCoding
914918b5ae update permission logic, update job runtime tests 2016-04-13 13:30:06 -04:00
Wayne Witzel III
c0b5fafafe read-only view /organization/<id>/projects 2016-04-13 11:39:14 -04:00
AlanCoding
b0bbeb2ca8 move credential to prompt-for mechanism 2016-04-12 17:09:25 -04:00
AlanCoding
68d8d25d64 fill in prompted data from JT, use standard launch permission, and compat code 2016-04-12 17:09:24 -04:00
AlanCoding
056a7d798a prompt-for vars in API browser box smart behavior 2016-04-12 17:09:24 -04:00
AlanCoding
bea15021b3 ask_for_inventory permissions and runtime tests finished
cleanup prompt-for additions

update migration after rebase
2016-04-12 17:09:24 -04:00
AlanCoding
19b855a4d3 prompt-for acceptance code in JT model 2016-04-12 17:09:24 -04:00
AlanCoding
cc84ed51d6 Add ability to prompt for several variable types on launch 2016-04-12 17:09:24 -04:00
Akita Noek
f3cae7e1f0 Log basic auth requests to the debug log
Part of #1087
2016-04-11 17:03:04 -04:00