Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nursix committed Jul 18, 2022
1 parent fd50e44 commit dea16f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nursix-dev-5447-gdfa43e3d6 (2022-07-18 14:17:19)
nursix-dev-5448-gfd50e444c (2022-07-18 15:07:17)
10 changes: 6 additions & 4 deletions modules/core/aaa/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4355,14 +4355,16 @@ def s3_remove_role(self, user_id, group_id, for_pe=DEFAULT):
# Archive the memberships
for m in memberships:
deleted_fk = {"user_id": m.user_id,
"group_id": m.group_id}
if for_pe:
deleted_fk["pe_id"] = for_pe
"group_id": m.group_id,
}
if m.pe_id:
deleted_fk["pe_id"] = m.pe_id
deleted_fk = json.dumps(deleted_fk)
m.update_record(deleted = True,
deleted_fk = deleted_fk,
user_id = None,
group_id = None)
group_id = None,
)

# Update roles for current user if required
if self.user and str(user_id) == str(self.user.id):
Expand Down

0 comments on commit dea16f4

Please sign in to comment.