This module prevents Drupal from installing from configuration

Created on 6 October 2023, about 1 year ago
Updated 26 November 2023, about 1 year ago

Problem/Motivation

When installing Drupal from configuration, installation fails with the following error:

Error: Call to a member function revokePermission() on null in /var/www/drupal/web/core/modules/user/user.module on line 1009 #0 /var/www/drupal/web/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.install(17): user_role_revoke_permissions('authenticated', Array)

Steps to reproduce

Enable this module, export configuration and then try to install drupal from that configuration:

drush si -y --existing-config

Proposed resolution

Line 17 of simplesamlphp_auth.install is causing the error:

user_role_revoke_permissions(AccountInterface::AUTHENTICATED_ROLE, ['change own password']);

I am not sure why this is necessary. Surely, there are valid configurations where some authenticated users retain their ability to change their own password.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bander2

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

Comments & Activities

Production build 0.71.5 2024