permissions

Permissions for Invenio-Admin.

permissions.admin_permission_factory(admin_view)

Default factory for creating a permission for an admin.

It tries to load a invenio_access.permissions.DynamicPermission instance if invenio_access is installed. Otherwise, it loads a flask_principal.Permission instance.

Parameters:admin_view – Instance of administration view which is currently being protected.
Returns:Permission instance.