diff --git a/swh/web/auth/utils.py b/swh/web/auth/utils.py --- a/swh/web/auth/utils.py +++ b/swh/web/auth/utils.py @@ -78,6 +78,7 @@ review, access to 'archives' type...) """ - return request.user.is_authenticated and request.user.has_perm( - SWH_AMBASSADOR_PERMISSION + user = request.user + return user.is_authenticated and ( + user.is_staff or user.has_perm(SWH_AMBASSADOR_PERMISSION) )