EntityGroupFieldSelectWidget::getAllowedGroups() is requiring "create [entity plugin id] entity" permission to make a group available for assignment. But isn't the relevant permission "create [entity plugin id] relationship"? That's all I need to assign a node to a group.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

brad.bulger created an issue. See original summary.

kopeboy’s picture

I think you're right, according to my tests it's the relationship permission that enables adding entities to groups.

dww’s picture

Issue tags: +Needs tests

Thanks for the bug report. Oh interesting. I think this changed between group V1 and V2+, and we missed it during #3306512: Add compatibility with Group v2 and v3.

dww’s picture

Version: 2.0.0-alpha1 » 2.0.x-dev
Status: Active » Needs review
Issue tags: -Needs tests

Opened MRs for both branches, and updated our existing test coverage accordingly.

dww’s picture

Title: unrelated required permissions » Wrong permission check in the select widget for groups the user can add content to
Issue summary: View changes

  • dww committed 7a9fbef5 on 2.0.x
    fix: [#3427716] Wrong permission check in the select widget for groups...

  • dww committed 16417e0e on 1.0.x
    fix: [#3427716] Wrong permission check in the select widget for groups...

dww’s picture

Status: Needs review » Fixed

Merged. Thanks, y'all!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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