Access Denied For Role Changes

Created on 14 July 2023, 12 months ago
Updated 15 July 2023, 12 months ago

Problem/Motivation

This model waits for the user to update their account, and if a specific field value is changed on their profile the admin and user are notified via email, and the user's role is changed on the site.

When executing the attached model all actions are executed, however, the role change action is denied. Upon log review it appears that it fails to pass access credentials as the action is being performed by the user and not the admin (for role change). The log is also stating that user: anonymous is performing the profile update.

Steps to reproduce

Set a target field on user profile to be observed in the model, save an initial value to that field, and then alter that field value.

πŸ’¬ Support request
Status

Fixed

Version

1.1

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024