Skip to content

Commit

Permalink
fix updating on upsert_users (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton authored Jun 6, 2022
1 parent f55d138 commit 849ff8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iam/api/management/commands/upsert_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def handle(self, *args, **kwargs):
db_user.email = user_data['email']

db_user.is_active = user_data.get('is_active', False)
db_user.is_admin = user_data.get('is_admin', False)
db_user.is_staff = user_data.get('is_admin', False)
db_user.is_superuser = user_data.get('is_superuser', False)
db_user.is_staff = user_data.get('is_staff', False)

# if password is set, update it
if 'password' in user_data:
Expand Down

0 comments on commit 849ff8f

Please sign in to comment.