![]() |
MediaWiki > MediaWiki security > MediaWiki permissions and access control >
This doesn’t work to block certain groups from accessing certain pages. I have no idea why it doesn’t work, because it looks like it ought to work that way.
It’s largely untested.
# create Test-ExtraNamespace: $wgExtraNamespaces = array(100 => "testnamespace", 101 => "testnamespace_talk" ); # restrict access to this extra-namespace $wgRestrictedNamespaces = array(100 => "testgroup", 101 => "testgroup" ); # allow only 'sysop' and 'testgroup' for restrictedNamespace 'testnamespace' $wgGroupPermissions['sysop']['testgroup'] = true; $wgGroupPermissions['testgroup']['testgroup'] = true; $wgGroupPermissions['testgroup']['read'] = true; #$wgGroupPermissions['testgroup' ]['edit'] = false;
To test ∞
- create a page in the test namespace, e.g.
[[testnamespace:foobar]] -
After creation, the page ‘foobar’ can be viewed / edited only by the groups you defined above.


ported