Allow roles other than Administrator to also control the switch form

Created on 11 February 2022, over 3 years ago
Updated 16 August 2025, about 1 month ago

Drupal Version

9.2.11

Domain module version

1.0.0-beta6

Expected Behavior

Users who have the right permissions should be able to see and control the configuration switch form, even when they aren't Administrator.

Actual Behavior

When navigating to /admin/config/system/site-information, users who aren't admin can't change domain-specific configuration. Even if the role has the right permissions set. This happens because it checks for field_domain_admin in the user entity instead of field_domain_access.

Steps to reproduce

  • Give use domain config ui and administer domain config ui permissions to a custom role.
  • Go a user with the created role and select all domains below domain access.
  • Go to /admin/config/system/site-information
  • There will be no configuration switch form.
Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇳🇱Netherlands kevin.-

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France mably

    If people are still interested in this feature, could we have a MR on 2.0.x please ?

  • 🇫🇷France mably

    Is the problem still relevant on latest 2.0.x?

    The use domain config ui permission should be enough to use the switch form.

    Unless new, valuable information is provided, this issue will be closed in 3 months.

Production build 0.71.5 2024