From 3682863a94068cf2656b85a0c2f693c3bcfe9975 Mon Sep 17 00:00:00 2001 From: Christian Wach Date: Wed, 4 Mar 2020 10:23:01 +0000 Subject: [PATCH] Fix display of administrator permissions in WordPress Multisite --- CRM/ACL/Form/WordPress/Permissions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/ACL/Form/WordPress/Permissions.php b/CRM/ACL/Form/WordPress/Permissions.php index 4c5f133006..de224f26a4 100644 --- a/CRM/ACL/Form/WordPress/Permissions.php +++ b/CRM/ACL/Form/WordPress/Permissions.php @@ -37,8 +37,8 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form { $wp_roles = new WP_Roles(); } foreach ($wp_roles->role_names as $role => $name) { - // Don't show the permissions options for administrator, as they have all permissions - if ($role !== 'administrator') { + // Unless it's Multisite, don't show the permissions options for administrator, as they have all permissions + if (is_multisite() or $role !== 'administrator') { $roleObj = $wp_roles->get_role($role); if (!empty($roleObj->capabilities)) { foreach ($roleObj->capabilities as $ckey => $cname) { -- 2.25.1