Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
  • Loading branch information
Josue-T and zamentur authored Jan 31, 2025
1 parent 6eaa7ed commit 0f1df76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions share/config_global.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ i18n = "global_settings_setting"
[security.portal]
[security.portal.portal_allow_edit_email]
type = "boolean"
default = 0

[security.portal.portal_allow_edit_email_alias]
type = "boolean"
Expand Down
2 changes: 1 addition & 1 deletion src/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def portal_update(
else:
# email already exist in the list we just move it on the first place
new_mails.remove(mainemail)
new_mails.insert(0, mainemail)
new_mails = [mainemail] + new_mails[1:]

new_attr_dict["mail"] = new_mails

Expand Down

0 comments on commit 0f1df76

Please sign in to comment.