* New Field "Health Check" #512 * Add status_dashboard to fields #512 * RS Peer Checkbox also visible on IX Site #727 * Add "Management" search field to Advanced Search of Exchanges #506 * wrap correctly on mobile #881 * missing delete button for user #653 * Removed cruft from IX view template #881 * To force or not to force www, that is a question #916 * add health check fields to entity creation forms (fac, ix, net) (#512) * status_dashboard should accept null values #512 * Sort usergroup names in https://peeringdb.com/cp/peeringdb_server/userpermission/xxxxx numerically #656 * fix issue with deleted entities showing up in search results #1042 * 2FA Backup Tokens language doesn't seem correct #908 * linting * poetry relock * fix user permission save trying to create a user * add status_dashboard to mock data * docs * add api doc regen to gen_docs call fix issue with run_tests if BASE_URL env var is set * fix generate_schema typo * 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-03-07 17:01:26.860132
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.