Skip to content

Commit

Permalink
Fix anomaly between staff and superuser
Browse files Browse the repository at this point in the history
  • Loading branch information
awaisdar001 committed May 10, 2019
1 parent 493f93e commit c28b6be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth_backends/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def get_user_details(self, response):
if locale:
details['language'] = _to_language(response['locale'])

# Set superuser bit if the provider determines the user is an administrator
details['is_superuser'] = details['is_staff'] = response.get('administrator', False)
details['is_staff'] = response.get('administrator', False)
details['is_superuser'] = response.get('superuser', False)

return details

Expand Down

0 comments on commit c28b6be

Please sign in to comment.