Angular components for managing resource-level permissions in MemberJunction applications. Provides interfaces for viewing, granting, editing, and revoking permissions for any resource type, viewing available resources, and requesting access to restricted resources.
Installation
npminstall@memberjunction/ng-resource-permissions
Overview
The resource permissions package provides three components that together form a complete permission management workflow: managing who can access a resource and at what level, viewing which resources a user has access to, and requesting access to restricted resources. All permission changes are grouped in transactions for data integrity.
flowchart TD
subgraph Manage["Permission Management"]
A["ResourcePermissionsComponent"]
A --> B["Add User/Role Permission"]
A --> C["Edit Permission Level"]
A --> D["Remove Permission"]
end
subgraph View["Resource Browsing"]
E["AvailableResourcesComponent"]
E --> F["Filtered Resource Grid"]
end
subgraph Request["Access Request"]
G["RequestResourceAccessComponent"]
G --> H["Submit Access Request"]
end
subgraph Engine["Permission Engine"]
I["ResourcePermissionEngine"]
end
A --> I
E --> I
G --> I
style Manage fill:#2d6a9f,stroke:#1a4971,color:#fff
style View fill:#7c5295,stroke:#563a6b,color:#fff
style Request fill:#2d8659,stroke:#1a5c3a,color:#fff
style Engine fill:#b8762f,stroke:#8a5722,color:#fff