Skip to content

Commit

Permalink
Merge pull request #16349 from mvdbeek/redact_name_in_private_user_role
Browse files Browse the repository at this point in the history
[23.0] Redact private role name and description when purging user
  • Loading branch information
mvdbeek authored Jun 30, 2023
2 parents fe21c1a + 9106772 commit 9893cb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/galaxy/managers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ def purge(self, user, flush=True):
role.description = role.description.replace(user.email, email_hash)
user.email = email_hash
user.username = uname_hash
private_role.name = email_hash
private_role.description = f"Private Role for {email_hash}"
self.session().add(private_role)
# Redact user addresses as well
if self.app.config.redact_user_address_during_deletion:
user_addresses = (
Expand Down

0 comments on commit 9893cb3

Please sign in to comment.