mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
Update relaunch endpoints to use custom serializer, check passwords needed before creating/copying job or ad hoc command.
This commit is contained in:
@@ -92,14 +92,6 @@ def check_user_access(user, model_class, action, *args, **kwargs):
|
||||
return result
|
||||
return False
|
||||
|
||||
def get_pk_from_dict(_dict, key):
|
||||
'''
|
||||
Helper for obtaining a pk from user data dict or None if not present.
|
||||
'''
|
||||
try:
|
||||
return int(_dict[key])
|
||||
except (TypeError, KeyError, ValueError):
|
||||
return None
|
||||
|
||||
class BaseAccess(object):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user