Skip to content

Commit

Permalink
Fix localadmin auth
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Dec 25, 2024
1 parent 1d86f84 commit 7d16c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def is_superadmin(request):
def is_localadmin(request):
"""Returns True, if the current user is Tenant-level administrator"""
user = request.user
return is_superadmin(request) or user.is_localadmin
return is_superadmin(request) or (hasattr(user, "is_localadmin") and user.is_localadmin)


def is_authenticated(request):
Expand Down

0 comments on commit 7d16c7c

Please sign in to comment.