management.security.decorators ============================== .. py:module:: management.security.decorators .. autoapi-nested-parse:: Management app decorators. Module Contents --------------- .. py:data:: F .. py:function:: security_level(feature) A decorator that checks whether a specific security feature is allowed based on the current security level. This decorator uses the SecurityManager to determine if the provided feature is permitted under the current security level. If the feature is not allowed, it raises a PermissionDenied exception. :param feature: The feature class or instance to check against the current security level. :returns: The decorated function that will only execute if the feature is allowed. :raises PermissionDenied: If the security level does not permit the requested feature.