Post-update check - Preventing user from changing it's own role (how to access pre-update values in post-update check?) #6458
Unanswered
franciscolourenco
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to prevent a user with a role from changing it's own role to a certain role?
This user should have permission to change other people's roles.
But we want to prevent the user from promoting themselves. Wouldn't we need to have access to the previous value of the role in the post-update check? Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions