Administer permissions should allow registration creation

Created on 8 October 2024, 2 months ago

Problem/Motivation

My understanding of the usual meaning of 'administer' for Drupal permissions is that it usually means 'can do anything', like a super-permission that covers all other permissions. There's even code in EntityAccessControlHAndler that enforces this for the admin permission defined in annotations on the entity type.

This module's 'administer registration' does work in this way is its specified on the entity type.

The bundle permission "administer $type_id registration" looks like it should have the same meaning, but just for a single type. But actually it doesn't, it doesn't give create access.

The description of the permissions does sort-of hint at this difference, but it's still a potentially confusing inconsistency.

Proposed resolution

Ensure that "administer $type registration" works the same as "administer registration".

Remaining tasks

Decide how to handle the behavior change.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Active

Version

3.3

Component

Registration Core

Created by

πŸ‡¬πŸ‡§United Kingdom jonathanshaw Stroud, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024