Decorators¶
-
uaa_client.decorators.staff_login_required(function=None, redirect_field_name='next', login_url=None)¶ Decorator to check that the user accessing the decorated view has their
is_staffflag set toTrue.It will first redirect to
login_urlor the default login url if the user is not authenticated. If the user is authenticated but is not staff, then adjango.core.exceptions.PermissionDeniedexception will be raised.