Skip to content

Commit f552973

Browse files
0x29axitij2000
authored andcommitted
fix: give superusers all studio permissions
(cherry picked from commit 8ef55754f4a529cc6b784298320fcdb8b415bd83) (cherry picked from commit 8e281a9)
1 parent 3ca85ea commit f552973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/djangoapps/student/roles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class GlobalStaff(AccessRole):
120120
The global staff role
121121
"""
122122
def has_user(self, user):
123-
return bool(user and user.is_staff)
123+
return bool(user and (user.is_superuser or user.is_staff))
124124

125125
def add_users(self, *users):
126126
for user in users:

0 commit comments

Comments
 (0)