* Do not show objects in status "pending" on the UI #784 * Fix peeringdb.js bug introduced in #784 * 500 Error during login for 2FA enabled accounts with unverified email address #996 * Django-Admin: adding a network with existing asn fails with internal error #1035 * Some command-line-tool executions are not logged #1119 * Ops: API throttling of repeated requests #1126 * Ops: response header X-Auth-ID to augment logging #1120 * Allow rate-limiting of melissa enabled api functionality. #1124 * State / Province normalization #1079 * Log melissa requests #1122 * remove debug messages * bump django-handleref to 1.0.2 * Need consolidated app logs #845 * pin django peeringdb to 2.13 and relock poetry * pin django-restframework-apikey to 2.1.0 * linting * migrations * docs regenerate * docs * linting Co-authored-by: David Poarch <dpoarch@20c.com> Co-authored-by: Stefan Pratter <stefan@20c.com>
1.6 KiB
Generated from org_admin_views.py on 2022-04-12 16:41:02.631987
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.