Adding non-existent permissions to a role is not allowed

Created on 13 April 2023, about 1 year ago
Updated 15 September 2023, 10 months ago

Problem/Motivation

When installing a site with the config of a role that has permission to assign its own role, an exception is thrown which causes the site installation to fail.

Steps to reproduce

  1. Create an install profile providing an editor role with the assign editor role permission.
  2. Set up a new site with the install profile. The installer will show The website encountered an unexpected error. Please try again later. RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "assign editor role".
πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium DieterHolvoet Brussels

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

Comments & Activities

Production build 0.69.0 2024