Skip to content

Commit

Permalink
fix: add instructor role to operators too (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristhian Garcia authored Oct 22, 2024
1 parent 3983151 commit 3ffdbb9
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 3ffdbb9

Please sign in to comment.