* Organization Merging Tool only offers the first 10 matches #941 * AC Change User Permission broken #1043 * change rs peer icon and move to policy column (#727) * An account with admin status can not have permissions #1157 * add rir_* fields to keep track of ASN status #473 * poetry relock for rdap 1.3.0 * Ops: Limit Django session creation for unauthenticated requests (#1205) * refactor 941 changes to honor grappelli field configuration and also fix broken end anchors * check term has a value * fix tests * poetry reloc and pin django-peeringdb to 2.14.0 * fix middleware test * linting * set more reasonable default RIR_ALLOCATION_DATA_CACHE_DAYS * better default dir for RIR_ALLOCATION_DATA_PATH * fix csv export for advanced search * fix issues with tests failing on CSRF_USE_SESSIONS when they are using RequestFactory * tox.ini for flake8 options * regen docs * regen docs Co-authored-by: David Poarch <dpoarch@20c.com>
1.6 KiB
Generated from org_admin_views.py on 2022-07-15 18:42:55.852692
peeringdb_server.org_admin_views
View for organization administrative actions (/org endpoint).
Functions
extract_permission_id
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.
load_all_user_permissions
def load_all_user_permissions(org)
Return dict of all users with all their permissions for the given org.
load_entity_permissions
def load_entity_permissions(org, entity)
Return entity's permissions for the specified org.
org_admin_required
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.
permission_ids
def permission_ids(org)
Return a dict of a valid permissioning ids for the specified organization.
save_user_permissions
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.
target_user_validate
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.