Skip to content

Commit

Permalink
Update AccessControlHooks.php
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhaslip authored Jan 4, 2025
1 parent 0934e6b commit 5ad5979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AccessControlHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5ad5979

Please sign in to comment.