Skip to content

Commit

Permalink
fix: [delete user] remove user from org
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Sep 17, 2024
1 parent ba61d1a commit 6509b5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/lib/ail_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,10 @@ def delete(self):
user_token = self.get_api_key()
if user_token:
r_serv_db.hdel('ail:users:tokens', user_token)
user_org = self.get_org()
if user_org:
org = ail_orgs.Organisation(user_org)
org.remove_user(self.user_id)
r_serv_db.delete(f'ail:user:metadata:{self.user_id}')
r_serv_db.hdel('ail:users:all', self.user_id)

Expand Down

0 comments on commit 6509b5d

Please sign in to comment.