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.
callable) – The view to wrap.
The wrapped view.
- Return type: