def requireAdmin(user, message=None):
    if user is None or user.get('admin', False) is not True:
        raise AccessException(message or 'Administrator access required.')
Calling this on a user will ensure that they have admin rights.  If not,
dataset/ETHPy150Open girder/girder/girder/api/rest.py/requireAdmin