PermWrapper
This class provides a dictionary-like interface for checking user permissions across different applications. It allows for permission lookups using both application labels and specific permission strings through the use of bracket notation and membership tests. The class acts as a wrapper around user-specific permission logic to simplify access control checks in templates or code.
Attributes
| Attribute | Type | Description |
|---|---|---|
| user | User object | The user instance used to perform permission lookups and authorization checks. |
Constructor
Signature
def PermWrapper(
user: object
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| user | object | The user object for whom permissions will be checked. |