Topic on Extension talk:Lockdown

Extension:Lockdown not working - $wgActionLockdown and others..?

2
AssetDenmark (talkcontribs)

I there a bug in this - I am trying to restrict the export function (entirely limit the range of special pages) in a simple way... but it seems like nothing is working for me. (I did try to mess with the $wgGroupPermissions - but I backed that out totally - and now lockdown is the only extension!

# Lockdown start

wfLoadExtension( 'Lockdown' );

Seems like this installed correct. But neither of these restricts 'user' from going to the (special page) export page...


$wgActionLockdown['Export'] = [ 'sysop' ];

$wgSpecialPageLockdown['Export'] = [ 'user' ];


and this is what I tired initially... after/while I was logged in as sysop..

$wgNamespacePermissionLockdown[NS_SPECIAL]['*'] = [ 'sysop' ];


(version 1.32.0)

AssetDenmark (talkcontribs)

Thanks to this Topic:Qan3neqhnccfkt5p - i can now exclude users from Specialpages... please look at that topic for my comments!

$wgNamespacePermissionLockdown['*']['edit'] = [ 'sysop' ];

IS working fine for me.. and I can also add namespacve permissions to selected users... like this.


$wgNamespacePermissionLockdown[NS_Baggrund]['read'] = array('user');

$wgNamespacePermissionLockdown[NS_Baggrund_TALK]['*'] = array('user');


Tip you can also add a new user group, that 'sysop' can then assigned. Say I have some namespace material that should only be available to 'user' (registered), and then some that should be available it I give permission. To create a new group, this group will be on the you must have lines (one for each group) like this in the localsettings.php:

$wgGroupPermissions['your-permisison-group']['read']   = false;

Reply to "Extension:Lockdown not working - $wgActionLockdown and others..?"