From: Andrew Garrett Date: Wed, 1 Aug 2007 13:15:37 +0000 (+0000) Subject: Small bug in userCan changes. Kudos to Raymond_ for spotting it X-Git-Tag: 1.31.0-rc.0~51899 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=e0c659370cbf64d7d7c285d85a28a178bd062011;p=lhc%2Fweb%2Fwiklou.git Small bug in userCan changes. Kudos to Raymond_ for spotting it --- 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 ) {