From 5ad59798c5cf288b8fc4a63ab49695345d0b4b4d Mon Sep 17 00:00:00 2001 From: David Haslip <103548776+davidhaslip@users.noreply.github.com> Date: Fri, 3 Jan 2025 22:00:17 -0800 Subject: [PATCH] Update AccessControlHooks.php --- src/AccessControlHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AccessControlHooks.php b/src/AccessControlHooks.php index f7284b4..9a48862 100644 --- a/src/AccessControlHooks.php +++ b/src/AccessControlHooks.php @@ -93,7 +93,7 @@ private static function canUserDoAction( User $user, ?array $tagContentArray, st if ( self::getConfigValue( 'AdminCanReadAll' ) ) { $ugm = MediaWikiServices::getInstance()->getUserGroupManager(); - if ( in_array( 'sysop', $ugm->listAllGroups() ) ) { + if ( in_array( 'sysop', $ugm->getUserEffectiveGroups( $user ) ) ) { // Admin can read all return $return; }