Adding non-existent permissions to a role is not allowed

Created on 13 April 2023, over 1 year ago
Updated 15 September 2023, over 1 year 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.71.5 2024