Jump to >


Review Board admin panel-specific decorators


Wrap a view so that is only accessible to superusers.

Unauthenticated users will be redirected to the login page. Logged in users without sufficient permissions will be redirected to a page showing a permission denied error.

This is very similar to Django’s own staff_member_required(), except it checks for superuser status instead of staff status.

Parameters:view (callable) – The view to wrap.
Returns:The wrapped view.
Return type:callable