Topic on Extension talk:Lockdown

lockdown for Special namespace

3
Mfort123 (talkcontribs)

It is possible to lockdown the special namespace? I do not want users having access to the Special namespace, so I wrote this in LocalSettings.php:

$wgNamespacePermissionLockdown[NS_SPECIAL]['read'] = array('bureaucrat');

I seem to be able to access special pages through a user that is not in group bureaucrat.

Kghbln (talkcontribs)

It does not make sense to do this. Logging into or out of a wiki already requires access to special pages. I suggest to lock down only selected special pages.

Mfort123 (talkcontribs)

My plan was to put the login,logout and other specific special pages in the $wgWhitelistRead array and then block the Special namespace. Then all the special pages would be blocked to users except a few of them (like login and logout). This approach doesn't seem to work.

I've never studied the php language, but I was able to look at the Lockdown.php file and make sense of it. For my needs, I ended up commenting out the part where pages specified in the $wgWhitelistRead array cannot be denied read acces.

Reply to "lockdown for Special namespace"