Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Triggering and Update Title of Admin Privileges Email #858

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

aaronskiba
Copy link
Collaborator

Fixes #835
Fixes #836

Changes proposed in this PR:

  • Fix triggering of admin privileges email to be sent when any privilege is added (rather than just when granting API access)
  • Update title of admin privileges email to (_('Administrator privileges updated in %{tool_name}'), tool_name: tool_name).

When `privileges_changed == true`, the admin_privileges email is triggered. Prior to this commit, the triggered email was working properly with respect to removed privileges. However, in terms of added privileges, it was only being triggered when the API access privilege was added. This commit results in the email now being triggered after any privilege is added.
lagoan
lagoan previously approved these changes Aug 19, 2024
Copy link
Collaborator

@lagoan lagoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@lagoan lagoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aaronskiba aaronskiba merged commit 209533f into integration Aug 19, 2024
13 checks passed
@aaronskiba aaronskiba deleted the aaron/issues/835-and-836 branch August 19, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants