decorators¶ Decorators that restrict views to certain types of users. Functions intranet.apps.auth.decorators.admin_required(group)[source]¶ Decorator that requires the user to be in a certain admin group. For example, @admin_required(“polls”) would check whether a user is in the “admin_polls” group or in the “admin_all” group. intranet.apps.auth.decorators.deny_restricted(wrapped)[source]¶ intranet.apps.auth.decorators.reauthentication_required(wrapped)[source]¶