- π³π±Netherlands kingdutch
This seems to be a duplicate of #3157744: "Add user" form in backend creates profile for roles that should not have one. β .
The intended solution doesn't seem to address what is outlined in the other issue yet. Since the proposed fix only happens right before profile saving it doesn't solve issues where the form shows required profile fields for disallowed profiles.
Additionally the proposed solution seems to duplicate a part of what should be taken into account in the access check (whether the current user has access to creating the profile) to the pre-save.
With those things in mind, moving back to needs work.
- last update
about 1 year ago 26 pass - π¨πΎCyprus alex.bukach
alex.bukach β made their first commit to this issueβs fork.
- Merge request !36Prevented creation of profiles not allowed for given user roles β (Open) created by alex.bukach
- π¨πΎCyprus alex.bukach
I have another idea (see MR!36): instead of deleting profiles let's not create them. Here's a respective patch.
- π¨πΎCyprus alex.bukach
It looks like we still need to check the profile in the ProfileFormWidget.