Skip to content

Commit d08c67e

Browse files
fixed for admin priveleges
1 parent 384bd61 commit d08c67e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soauth/database/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def has_visibility_grant(self, user_grant: set[str]) -> bool:
4949
"""
5050
if not self.visibility_grant:
5151
return True
52+
if "admin" in user_grant:
53+
return True
5254
return self.visibility_grant in user_grant
5355

5456

0 commit comments

Comments
 (0)