Several places in the module use this pattern for access checks:

    // Only allow access if the user can create group content using the
    // provided plugin or if he doesn't need access to do so.
    return AccessResult::allowedIf($access xor !$needs_access);

Why deny access if both apply?
If the user doesn't need access to be checked, then surely it shouldn't matter if the access check has passed?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim created an issue. See original summary.

LOBsTerr’s picture

Status: Active » Needs review
FileSize
1.21 KB

I agree it should be xor