Small bug in userCan changes. Kudos to Raymond_ for spotting it
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 1 Aug 2007 13:15:37 +0000 (13:15 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 1 Aug 2007 13:15:37 +0000 (13:15 +0000)
includes/Title.php

index b5a6077..80adc1c 100644 (file)
@@ -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 ) {