Update relaunch endpoints to use custom serializer, check passwords needed before creating/copying job or ad hoc command.

This commit is contained in:
Chris Church
2015-03-31 17:40:00 -04:00
parent 02eda72bd9
commit 88e7f6624c
4 changed files with 80 additions and 21 deletions

View File

@@ -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):
'''