Skip to main content

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

AttributeTypeDescription
userUser objectThe user instance used to perform permission lookups and authorization checks.

Constructor

Signature

def PermWrapper(
user: object
) - > null

Parameters

NameTypeDescription
userobjectThe user object for whom permissions will be checked.