Skip to content

Commit

Permalink
user: only sync permissions if email was updated (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi authored Sep 29, 2020
1 parent 00a289a commit 515a35f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controller/command/commands/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ def edit_helper(self,
" level.")

self.facade.store(edited_user)
sync_user_email_perms(self.gcp, self.facade, edited_user)

# Sync permissions only if email was updated
if param_list["email"]:
sync_user_email_perms(self.gcp, self.facade, edited_user)

ret = {'attachments': [edited_user.get_attachment()]}
if msg != "":
Expand Down

0 comments on commit 515a35f

Please sign in to comment.