Rebuild permission warning shouldn't be shown to users who can't do so

Created on 5 October 2023, about 1 year ago

With the changes introduced in issue #3357181, any role change shows a message to the user about rebuilding permissions.

We have a few processes on our site that mean that non-admin users can effectively change their own roles. For example, they purchase a membership, so they gain the "member" role upon payment.

These users are receiving a "rebuild permission" warning that they don't understand or have the ability to act upon.

I think the warning should only be shown to users who can access the URL the link points towards. If the warning isn't shown, it should be put in the logs instead. (Or better yet: always logged and, when the user can do it, also shown in a message.)

Thanks.

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

🇨🇦Canada samalander

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024