[Mediawiki-l] Locking "Templates" pages?

Rob Church robchur at gmail.com
Tue Jun 20 00:56:42 UTC 2006


On 19/06/06, Ken McDonald <ken at pixologic.com> wrote:
> I'm aware that there is no standard mechanism for assigning particular
> access privileges based on namespace (we don't really want to use one of
> the custom plugins unless it's pretty sure it will end up in the next
> version of MW), but is there any "good" (semi-approved) way to
> write-protect this particular namespace?

Use the hook in Title::userCan(), check against the namespace and
$wgUser->isAllowed(); add custom permissions via an extension.

This can probably be done fairly reliably; it's restricting reading
that's the bigger problem.


Rob Church



More information about the MediaWiki-l mailing list