From e0c659370cbf64d7d7c285d85a28a178bd062011 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 1 Aug 2007 13:15:37 +0000 Subject: [PATCH] Small bug in userCan changes. Kudos to Raymond_ for spotting it --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index b5a60773b6..80adc1c573 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1168,7 +1168,7 @@ class Title { $groups = array(); global $wgGroupPermissions; foreach( $wgGroupPermissions as $key => $value ) { - if( isset( $value[$permission] ) && $value[$permission] == true ) { + if( isset( $value[$action] ) && $value[$action] == true ) { $groupName = User::getGroupName( $key ); $groupPage = User::getGroupPage( $key ); if( $groupPage ) { -- 2.20.1