Roles are missing registration type dependencies

Created on 26 November 2023, 7 months ago
Updated 27 November 2023, 7 months ago

Problem/Motivation

The "per registration type" permissions are not adding a dependency on the registration type to roles that use them. This could result in the exception RuntimeException: Adding non-existent permissions to a role is not allowed when updating roles, if a registration type is ever deleted.

Steps to reproduce

Add a new registration type. Assign per-type permissions to a role. Delete the registration type. Attempt to update the role - an exception occurs during save.

Proposed resolution

Redo the Registration permission provider to leverage the core BundlePermissionHandlerTrait which adds the required dependencies. When a registration type is deleted, the dependencies trigger removal of permissions that no longer exist from any roles that use them.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Registration Core

Created by

πŸ‡ΊπŸ‡ΈUnited States john.oltman

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024