Skip to content

Commit

Permalink
fix: add instructor role to operators too
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Oct 22, 2024
1 parent 09b6638 commit 4c53d58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _get_user_roles(self, username, locale):
if decoded_access_token.get("superuser", False):
return ["admin", f"admin-{locale}"]
elif decoded_access_token.get("administrator", False):
return ["alpha", "operator", f"operator-{locale}"]
return ["alpha", "operator", f"operator-{locale}", "instructor", f"instructor-{locale}"]
else:
# User has to have staff access to one or more courses to view any content
# here. Since this is only called on login, we take the opportunity
Expand Down

0 comments on commit 4c53d58

Please sign in to comment.