Closed (works as designed)
Project:
Profile
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2019 at 03:55 UTC
Updated:
12 Dec 2019 at 22:34 UTC
Jump to comment: Most recent
Comments
Comment #2
gil'barbareI also have the same problem, but only when
Allow multiple profiles per useris enabled in/admin/config/people/profile-types/manage/MY_PROFILE_TYPE.Everything seems to be OK when this
Allow multiple profiles per usercheckbox is not enabled.Comment #3
bbuchert commentedExperiencing this bug aswell once I disable multiple profiles per user this works again.
Comment #4
philsward commentedSee and what's odd is that I don't have "Allow multiple profiles per user" enabled...
Comment #5
bojanz commentedStart by unchecking all roles on your profile type screen. The ProfileAccessControlHandler logic only kicks in if at least one role is selected. If unchecking all roles doesn't change anything, the bug is not in ProfileAccessControlHandler, and is caused by a different module.
Comment #6
gil'barbareI think I found a decent workaround that could end up this issue with a "works as designed".
For me, it's just about multiple profiles, ie when the
ALLOW MULTIPLE PROFILESis set toYesin/admin/config/people/profile-types.Here is what I did, and I hope this use case can help solve this issue.
First My Problem : after updating to 8.x-1.0, a "You are not authorized to access this page." message was dispalyed on
/user/USER_ID/MY_PROFILEpage, and theAdd New Profilebutton had disappeared.Then My Solution (or Workaround) in a few steps
1 - Go to
/admin/people/permissions, search for "MY_PROFILE" and enableMY_PROFILE: Create profilesfor the roles owning MY_PROFILE profiles2 - Migrate the page
/user/USER_ID/MY_PROFILEto the new/user/USER_ID/MY_PROFILE/add. That means migrating all theBlocksto this new URL and updating the menu links as well. You will notice theSavebutton appears here.3 - Extra : add a
Tabgroup field in/admin/config/people/profile-types/manage/MY_PROFILE/form-display. This way, the user can be show her existing MY_PROFILE profiles on the top of the page in aBlockand expand the tab when she wants to add a new MY_PROFILE profile.Comment #7
gil'barbare