Meza/per site access and read permissions
You can alter the permissions of an individual meza wiki by placing the standard mediawiki variables in the post-LocalSettings.d php files for the specific site.
For example: Imagine your MEZA is configured for open access wikis and you just created a new wiki for a future project using
meza create wiki monolith and you're not yet ready to let everyone in.
You would go to:
/opt/config-meza/public/wikis/yournewwiki/post-LocalSettings.d/ and create a file called something like
customsettings.php and place the following code in:
<?php $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false;
this would essentially close your wiki to all anonymous viewing and editing and disallow un-registered users from registering.
alternatively, you could edit
/opt/config-meza/public/wikis/yournewwiki/pre-LocalSettings.d/ and add a line like:
$mezaAuthType = 'user-read';
to make anonymous users not able to view using the variable built in to meza that has preset combinations ready to go. See https://github.com/enterprisemediawiki/meza/blob/master/src/roles/mediawiki/templates/LocalSettings.php.j2#L646 for more details