Index: trunk/extensions/SimpleSecurity/SimpleSecurity.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | if (!defined('MEDIAWIKI')) die('Not an entry point.'); |
23 | 23 | if (version_compare($wgVersion, '1.11.0') < 0) die('Sorry, this extension requires at least MediaWiki version 1.11.0'); |
24 | 24 | |
25 | | -define('SIMPLESECURITY_VERSION', '4.2.11, 2008-09-05'); |
| 25 | +define('SIMPLESECURITY_VERSION', '4.2.12, 2008-09-06'); |
26 | 26 | |
27 | 27 | # Global security settings |
28 | 28 | $wgSecurityMagicIf = "ifusercan"; # the name for doing a permission-based conditional |
— | — | @@ -102,11 +102,15 @@ |
103 | 103 | #$wgGroupPermissions['sysop'][$k] = true; # Ensure sysops have the right to perform this extra action |
104 | 104 | } |
105 | 105 | |
| 106 | + # Ensure the new groups show up in rights management |
| 107 | + # - note that 1.13 does a strange check in the ProtectionForm::buildSelector |
| 108 | + # $wgUser->isAllowed($key) where $key is an item from $wgRestrictionLevels |
| 109 | + # this requires that we treat the extra groups as an action and make sure its allowed by the user |
106 | 110 | foreach ($wgSecurityExtraGroups as $k => $v) { |
107 | 111 | if (empty($v)) $v = ucfirst($k); |
108 | 112 | $wgRestrictionLevels[] = $k; |
109 | 113 | $wgMessageCache->addMessages(array( "protect-level-$k" => $v )); |
110 | | - $wgGroupPermissions[$k]['not_an_action'] = true; # Ensure the new groups show up in rights management |
| 114 | + $wgGroupPermissions[$k][$k] = true; |
111 | 115 | } |
112 | 116 | } |
113 | 117 | |