Skip to content

Commit

Permalink
fix: give superusers all studio permissions
Browse files Browse the repository at this point in the history
(cherry picked from commit 8ef55754f4a529cc6b784298320fcdb8b415bd83)
(cherry picked from commit 8e281a9)
(cherry picked from commit f552973)
  • Loading branch information
0x29a committed Dec 27, 2023
1 parent 50da901 commit 6de7b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/djangoapps/student/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class GlobalStaff(AccessRole):
The global staff role
"""
def has_user(self, user):
return bool(user and user.is_staff)
return bool(user and (user.is_superuser or user.is_staff))

def add_users(self, *users):
for user in users:
Expand Down

0 comments on commit 6de7b64

Please sign in to comment.