Skip to content

Commit 518a60c

Browse files
committed
Merge branch 'staging' of https://github.com/OpenUpSA/agari-folio into staging
2 parents fcd61b5 + ec79d64 commit 518a60c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

auth.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,10 @@ def toggle_user_enabled(self, user_id, enabled):
891891
user['enabled'] = enabled
892892
requests.put(user_url, headers=headers, json=user)
893893

894+
# Update user attributes to reflect enabled status
895+
self.remove_attribute_value(user_id, 'account_enabled', str(not enabled))
896+
self.add_attribute_value(user_id, 'account_enabled', str(enabled))
897+
894898

895899
def get_user_access_token(self, user_id):
896900
"""Get an access token for a specific user using token exchange or admin token"""

0 commit comments

Comments
 (0)