Generated from org_admin_views.py on 2022-10-11 12:34:14.972233
View for organization administrative actions (/org endpoint).
def extract_permission_id(source, dest, entity, org)
Extract a user's permissioning id for the specified entity from source and store it in dest .
Source should be a dict containing django-namespace-perms (namespace, level) items.
Dest should be a dict where permission ids are to be exracted to.
Entity can either be a HandleRef instance or class.
Org must be an Organization instance that owns the entity.
def load_all_user_permissions(org)
Return dict of all users with all their permissions for the given org.
def load_entity_permissions(org, entity)
Return entity's permissions for the specified org.
def org_admin_required(fnc)
Decorator function that ensures that the requesting user has administrative rights to the targeted organization.
Also sets "org" in kwargs.
def permission_ids(org)
Return a dict of a valid permissioning ids for the specified organization.
def save_user_permissions(org, user, perms)
Save user permissions for the specified org and user.
Perms should be a dict of permissioning ids and permission levels.
def target_user_validate(fnc)
Decorator function that ensures that the targeted user is a member of the targeted organization.
Should be below org_admin_required.
Also sets "user" in kwargs.