Skip to content

Commit

Permalink
Merge pull request #10 from alanzhu0/master
Browse files Browse the repository at this point in the history
fix(auth): remove is_announcements_admin from Ion API check
  • Loading branch information
bradley-cao authored May 13, 2023
2 parents 22229f0 + 0c7f1be commit 31d3b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shortener/apps/auth/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_scope(self):

def get_user_details(self, response):
# fields used to populate/update User model
admin = response["is_eighth_admin"] or response["is_announcements_admin"]
admin = response["is_eighth_admin"]
return {
"id": response["id"],
"username": response["ion_username"],
Expand Down

0 comments on commit 31d3b8d

Please sign in to comment.