mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
avoid applying system auditor prop if action was association
This commit is contained in:
@@ -768,7 +768,7 @@ class BaseUsersList(SubListCreateAttachDetachAPIView):
|
||||
def post(self, request, *args, **kwargs):
|
||||
ret = super(BaseUsersList, self).post( request, *args, **kwargs)
|
||||
try:
|
||||
if request.data.get('is_system_auditor', False):
|
||||
if ret.data is not None and request.data.get('is_system_auditor', False):
|
||||
# This is a faux-field that just maps to checking the system
|
||||
# auditor role member list.. unfortunately this means we can't
|
||||
# set it on creation, and thus needs to be set here.
|
||||
|
||||
Reference in New Issue
Block a user