Skip to content

Commit

Permalink
Merge pull request #19402 from jdavcs/dev_user_email_api_help
Browse files Browse the repository at this point in the history
Display email activation help only if user activation is enabled
  • Loading branch information
martenson authored Jan 16, 2025
2 parents 9fc0f05 + 93b684e commit 2411fb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/galaxy/webapps/galaxy/api/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,11 @@ def get_information(self, trans, id, **kwd):
"type": "text",
"label": "Email address",
"value": email,
"help": "If you change your email address you will receive an activation link in the new mailbox and you have to activate your account by visiting it.",
"help": (
"If you change your email address you will receive an activation link in the new mailbox and you have to activate your account by visiting it."
if trans.app.config.user_activation_on
else ""
),
}
)
if is_galaxy_app:
Expand Down

0 comments on commit 2411fb8

Please sign in to comment.