Commit Graph

438 Commits

Author SHA1 Message Date
Wayne Witzel III
542d3d22b2 Merge pull request #1889 from wwitzel3/issue-1881
remove URL and add roles endpoint for JobTemplate
2016-05-13 09:16:37 -04:00
Wayne Witzel III
0ef456e4d8 added related Roles to Project, Credential, Inventory, and Group 2016-05-12 10:05:46 -04:00
Wayne Witzel III
6a5f4d6113 remove URL and add roles endpoint for JobTemplate 2016-05-10 16:29:11 -04:00
Matthew Jones
d5afbc20ac Require cloud on inventory source for notification
Inventory Sources must now be a cloud type in order to associate a
notification template with it.
2016-05-10 14:50:34 -04:00
Alan Rominger
ac24fc75b8 Merge pull request #1823 from AlanCoding/532_survey_validation
Block Duplicate Survey Variables
2016-05-10 13:35:57 -04:00
Alan Rominger
11e9792356 Merge pull request #1819 from AlanCoding/more_error_msg_periods
Add even more periods in error messages
2016-05-09 13:51:02 -04:00
Matthew Jones
b6f8d12119 Map ProjectUpdate for notifications on its view 2016-05-09 12:48:46 -04:00
AlanCoding
92efb2d317 exception for dual-name questions and more tests 2016-05-05 15:53:35 -04:00
AlanCoding
91c7dee2f6 Add error messages in permission denied cases 2016-05-05 14:31:17 -04:00
Matthew Jones
5895b3a343 Refactor Notification's naming
Notifier -> NotificationTemplate
notifier -> notification_template
2016-05-05 13:53:46 -04:00
AlanCoding
18f48875c7 change 404 errors to PermissionDenied for those with links 2016-05-04 16:14:21 -04:00
Akita Noek
1f49b475bd Filter out a users own Admin Role from their roles list
As per a UI request, we don't want to show the implicitly defined
'admin_role' roles that get created for every user so they can manage
themselves. These roles exist for every user, and the only members of
those roles are the users themselves, so it's a pretty boring role. We
also don't want to allow for anyone to be removed from their own admin
role, so hiding this is probably a good thing all around to avoid
confusion and clutter.

 Fixes #1689
2016-05-03 13:52:34 -04:00
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