Skip to content

Commit

Permalink
Fix check user is a superuser. (#905)
Browse files Browse the repository at this point in the history
Co-authored-by: wlorenzetti <lorenzett@gis3w.it>
(cherry picked from commit 171ec89)
  • Loading branch information
wlorenzetti authored and github-actions[bot] committed Jul 22, 2024
1 parent 5e94481 commit abe2b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g3w-admin/usersmanage/api/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ class IsAdminOrEditor1User(BasePermission):
"""

def has_permission(self, request, view):
return (bool(request.user and request.user.is_staff) or
return (bool(request.user and request.user.is_superuser) or
userHasGroups(request.user, [G3W_EDITOR1]))

0 comments on commit abe2b67

Please sign in to comment.