Wayne Witzel III
ce3ce8d930
enforce read access for team/child roles
2016-06-27 11:02:07 -04:00
Wayne Witzel III
87ffded774
renaming Credential.owner_role -> Credential.admin_role
2016-06-24 16:55:07 -04:00
Wayne Witzel III
68d47cfc93
Merge pull request #2574 from wwitzel3/fix-race
...
Ensure teams cannot have org roles as children.
2016-06-22 17:31:27 -04:00
Matthew Jones
960b6e22aa
Fix up broken CredentialOwnerTeams view
...
Missing the object when requesting whether the user can access it or not
2016-06-22 15:17:45 -04:00
Wayne Witzel III
67e516f263
update language in error message
2016-06-22 12:14:11 -04:00
Wayne Witzel III
e07a06e990
Teams cannot be parents of Organization roles
2016-06-22 11:59:40 -04:00
Chris Church
cf7102bc49
Move validation of credential creation to the serializer. Use SubListCreateAPIView for creating a credential under another object, and remove fields from serializer and API docs that aren't valid when creating a credential under another object.
2016-06-17 09:56:27 -04:00
Alan Rominger
d9f62c4fa9
Merge pull request #2458 from AlanCoding/2453_proj_team_sub
...
/teams/N/projects/ queryset changed to reverse of /projects/N/teams/
2016-06-16 16:06:18 -04:00
AlanCoding
068a788958
team_project sublist to use same pattern as project_team
2016-06-16 13:18:47 -04:00
AlanCoding
5af6d14f27
protect launch endpoint against certain falsy values
2016-06-16 09:41:07 -04:00
Wayne Witzel III
6013a853f5
Merge pull request #2387 from wwitzel3/issue-2316
...
remove User.object_roles endpoint and discovery
2016-06-14 13:43:58 -04:00
Wayne Witzel III
203ebd20e8
remove the User.object_roles view
2016-06-14 11:42:23 -04:00
Alan Rominger
0583a7c435
Merge pull request #2353 from AlanCoding/2226_user_roles_access
...
Fixes for role assignment permissions
2016-06-14 11:25:33 -04:00
AlanCoding
9d86fb0a09
change wording to reflect team sublist endpoint
2016-06-13 14:11:02 -04:00
AlanCoding
b485b85076
TeamRolesList permission tests and fix, organize tests
2016-06-13 11:09:48 -04:00
AlanCoding
7f38227e11
fix bug in RoleTeamsList
2016-06-11 18:04:05 -04:00
Matthew Jones
753b338205
Make sure project team list is filtered for access
2016-06-10 15:10:37 -04:00
Matthew Jones
b612f65479
Fix up the project teams list
...
This was still referencing the old mechanism for pulling associative
information. This updates it to query against the new role system
2016-06-10 15:06:14 -04:00
Wayne Witzel III
0f59314116
Merge pull request #2329 from wwitzel3/issue-2269
...
Add Organization FK to Credential
2016-06-10 11:32:24 -07:00
Wayne Witzel III
2c05df064b
adjusting API for new Credential.organization
2016-06-10 13:23:02 -04:00
Akita Noek
175c010296
Attach labels instead of erroring on creation if label already exists
...
If a label already exists, don't error out when trying to post to the
job_templates/n/labels endpoint, instad just lookup the ID and attach
it. This is primarily to benefit the UI, but in general seems like a
good behavior for this endpoint anyways.
Fixes #2135
2016-06-10 11:56:19 -04:00
Wayne Witzel III
73acf006cf
Merge pull request #2282 from wwitzel3/cred-owners
...
add credential owner endpoints
2016-06-09 12:01:09 -07:00
Wayne Witzel III
698085353b
addressing review comments
2016-06-09 14:47:54 -04:00
Wayne Witzel III
ccc510110d
add credential owner endpoints
2016-06-09 14:41:35 -04:00
Matthew Jones
3e8aaa4b5e
Fix an issue showing attach/detach docs
...
There's a condition in sub_list_create_api_view.md template that
controls whether or not the attach/detach documentation is shown for
sublist elements that support it. Looks like it's been this way for a
while. This updates that condition to work anywhere it's needed
2016-06-09 09:56:44 -04:00
Matthew Jones
c4b06ce7c0
Force survey min/max type during comparisons
2016-06-07 10:42:03 -04:00
Akita Noek
cedecb97e4
Refactored thing/n/roles -> thing/n/object_roles
2016-06-03 12:17:52 -04:00
AlanCoding
f695caf1ac
auto associate JT creator with admin_role
2016-05-23 14:56:23 -04:00
AlanCoding
3f63172ac4
inventory exec role changed to use
2016-05-20 15:36:00 -04:00
Akita Noek
ba19e0e105
Merge pull request #1975 from anoek/auditor-support
...
Add support for creating system auditors
2016-05-20 13:33:21 -04:00
Akita Noek
23e7e12a04
Support creating system auditors through all 4 of our user creation endpoints
2016-05-19 13:07:58 -04:00
Akita Noek
727dc580c7
Merge pull request #1968 from wwitzel3/issue-1938
...
adds related `roles` for InventoryScript
2016-05-19 09:25:53 -04:00
Akita Noek
9fba513c4f
Protect against bad posts, fixes some test cases
2016-05-18 17:01:38 -04:00
Akita Noek
9e562deb0c
Copy paste error
2016-05-18 16:50:43 -04:00
Akita Noek
d79d8cbfba
Don't let Org Admins promote themselves to System Admins
...
Nor System Auditor
2016-05-18 16:03:36 -04:00
Akita Noek
390ac656fa
Bolted is_system_auditor faux-field onto User
2016-05-18 16:02:10 -04:00
Wayne Witzel III
c99e4ea398
remove copy/paste .all() from Role get_queryset implementations
2016-05-18 15:23:41 -04:00
Wayne Witzel III
cce7af3d19
adds related roles for InventoryScript
2016-05-18 14:21:30 -04:00
AlanCoding
f6b3da0c46
Make error message grammar more consistent
2016-05-18 13:39:06 -04:00
Alan Rominger
5fc5f1858a
Merge pull request #1801 from AlanCoding/1773_cred_detail_serializer
...
Purge credential detail view of special fields
2016-05-18 09:54:43 -04:00
Matthew Jones
430b548395
Exclude the job template limit during callback
...
This causes some unexpected behavior when commas instead of colons are
used during the job template limit due to a bug in ansible. It has the
effect of expanding the number of hosts that it will run on instead of
just one which is what we are expecting
2016-05-17 10:35:14 -04:00
Akita Noek
3862d6d1be
Merge pull request #1935 from anoek/1929
...
Fix project update permissions
2016-05-17 10:15:20 -04:00
Alan Rominger
863105435e
Merge pull request #1871 from AlanCoding/1868_org_cts_sublist
...
Add organization resource cts. in sublists
2016-05-17 09:58:44 -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
98412b52f2
Handle non-existent license data in config view
2016-05-16 16:34:01 -04:00
Akita Noek
a2cc2927e6
Turn off activity stream flag in the UI if we have it explicitly disabled in our settings file
2016-05-16 10:38:22 -04:00
Wayne Witzel III
599902da47
update api view/serializers for new role names
2016-05-13 12:00:33 -04:00
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