Profile form widget doesn't respect assigned roles

Created on 24 October 2020, over 3 years ago
Updated 19 March 2024, 3 months ago

Problem/Motivation

When you use the ProfileFormWidget to include at user form several profiles that are restricted by role, even when they are correctly hidden according to the user roles each profile is created after save, no matter if user has access or not.

Steps to reproduce

Create 1 or more profiles, limit by role. Add them via ProfileForm widget to the user form. Edit an user without the needed roles. After saving the user the profiles are created.

Proposed resolution

Edit the saveProfiles method at ProfileFormWidget class in order to save only the type assigned to the widget, like it's correctly made at validateProfileForm for example.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡·Argentina sarhugo

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