The permission specified in the access arguments is 'administer group member profile types', but this is not defined anywhere else.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

scott.melton created an issue. See original summary.

scott.melton’s picture

Issue summary: View changes
FileSize
819 bytes

Adding hook_permission call with 'administer group member profile types'; this permission is needed for gprofile_entity_info_alter().

kristiaanvandeneynde’s picture

Status: Active » Needs review

Hi there Scott and thanks for using Group!

I'll look into your patch as soon as the post-DrupalCon workload is gone. Looks like you caught a simple oversight, though. So a fix (commit) should come soon.

Greg Varga’s picture

Maybe this is an oversight on my part but I can't see a permission to allow a member to 'edit own profile'. Sorry if I am missing something, but I thought this could be relevant to this issue.

johnennew’s picture

Status: Needs review » Needs work

@Gergely Varga - Users can edit their own profile if they are granted the Edit own membership permission.

@scott.melton - I applied the patch in #2, granted the new permission to a user and that user still got an access denied on the path admin/group/member/manage/mynewprofile This is due to gprofile_type_access requiring the configure group module permission.

Is this administer group member profile types permission actually needed? Is there a need for providing such a fine grained permission or should we just change the required permission in gprofile_entity_info_alter for configure group module

johnennew’s picture

Version: 7.x-1.0-beta6 » 7.x-1.x-dev
Status: Needs work » Needs review
FileSize
600 bytes

patch for review

kristiaanvandeneynde’s picture

Yup, no idea how I put that permission in there in the first place. Seeing as this is group configuration and all config so far has been gated behind "configure group module", let's roll with that.

kristiaanvandeneynde’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.