Problem/Motivation

RegistrationAccessControlHandler refers to a global 'create registration' permission that does not exist:

  protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL): AccessResultReasonInterface|AccessResult|AccessResultInterface {
    $result = parent::checkCreateAccess($account, $context, $entity_bundle);
    if ($result->isNeutral()) {
      $permissions = [
        $this->entityType->getAdminPermission() ?: 'administer registration',
        'create registration',
      ];

Proposed resolution

Remove that reference.

Add the permission.

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

jonathanshaw created an issue. See original summary.

john.oltman’s picture

Version: 3.1.x-dev » 3.3.x-dev

  • john.oltman committed 03a141c0 on 3.3.x
    #3461152: Create registration permission does not exist
    

  • john.oltman committed 6c2f57fe on 3.1.x
    #3461152: Create registration permission does not exist
    
john.oltman’s picture

Issue summary: View changes
Status: Active » Fixed

Ended up going the other direction and adding the permission since it was a shorter path and some sites could benefit, especially those with many registration types.

Status: Fixed » Closed (fixed)

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