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)
  • Loading branch information
0x29a authored and xitij2000 committed Jun 27, 2023
1 parent 3ca85ea commit f552973
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 @@ -120,7 +120,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 f552973

Please sign in to comment.