diff --git a/example.LocalSettings.php b/example.LocalSettings.php index 9d95495..65ea479 100644 --- a/example.LocalSettings.php +++ b/example.LocalSettings.php @@ -169,6 +169,7 @@ $wgDiff3 = "/usr/bin/diff3"; # Start with assigning the default permissions from group "user" inherited $wgGroupPermissions['conradgroup'] = $wgGroupPermissions['*']; $wgGroupPermissions['lauragroup'] = $wgGroupPermissions['*']; +$wgGroupPermissions['colagroup'] = $wgGroupPermissions['*']; # Namespace definition for Conrad and Laura # Define constants for Conrads namespace @@ -177,27 +178,36 @@ define("NS_CONRAD_TALK", 3001); // This MUST be the following odd integer. # Define constants for Laura namespace define("NS_LAURA", 3002); // This MUST be even. define("NS_LAURA_TALK", 3003); // This MUST be the following odd integer. +# Define constants our CoLa namespace +define("NS_COLA", 3004); // This MUST be even. +define("NS_COLA_TALK", 3005); // This MUST be the following odd integer. # Add namespaces. $wgExtraNamespaces[NS_CONRAD] = "Conrad"; $wgExtraNamespaces[NS_CONRAD_TALK] = "Conrad_talk"; // Note underscores in the namespace name. $wgExtraNamespaces[NS_LAURA] = "Laura"; $wgExtraNamespaces[NS_LAURA_TALK] = "Laura_talk"; // Note underscores in the namespace name. +$wgExtraNamespaces[NS_COLA] = "CoLa"; +$wgExtraNamespaces[NS_COLA_TALK] = "CoLa_talk"; // Note underscores in the namespace name. # The following permissions were set based on your choice in the installer $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false; -# Special permissions for User Namespaces -$wgNamespaceProtection[NS_CONRAD] = array( 'editconrad' ); // permission "editfoo" required to edit the foo namespace -$wgNamespacesWithSubpages[NS_CONRAD] = true; // subpages enabled for the foo namespace -$wgGroupPermissions['conradgroup']['editconrad'] = true; // permission "editfoo" granted to users in the "sysop" group +# Special Namespace restrictions +################################# +# only for editing per user or group, if viewing restriction is needed use Lockdown extension only # Special permissions for User Namespaces -$wgNamespaceProtection[NS_LAURA] = array( 'editlaura' ); // permission "editfoo" required to edit the foo namespace -$wgNamespacesWithSubpages[NS_LAURA] = true; // subpages enabled for the foo namespace -$wgGroupPermissions['lauragroup']['editlaura'] = true; // permission "editfoo" granted to users in the "sysop" group +#$wgNamespaceProtection[NS_CONRAD] = array( 'editconrad' ); // permission "editfoo" required to edit the foo namespace +#$wgNamespacesWithSubpages[NS_CONRAD] = true; // subpages enabled for the foo namespace +#$wgGroupPermissions['conradgroup']['editconrad'] = true; // permission "editfoo" granted to users in the "sysop" group + +# Special permissions for User Namespaces +#$wgNamespaceProtection[NS_LAURA] = array( 'editlaura' ); // permission "editfoo" required to edit the foo namespace +#$wgNamespacesWithSubpages[NS_LAURA] = true; // subpages enabled for the foo namespace +#$wgGroupPermissions['lauragroup']['editlaura'] = true; // permission "editfoo" granted to users in the "sysop" group ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'vector', 'monobook': @@ -240,6 +250,16 @@ wfLoadExtension( 'TemplateData' ); wfLoadExtension( 'TextExtracts' ); wfLoadExtension( 'TitleBlacklist' ); wfLoadExtension( 'VisualEditor' ); +$wgVisualEditorAvailableNamespaces = array( + NS_MAIN => true, + NS_COLA_TALK => true, + NS_USER => true, + NS_HELP => true, + NS_PROJECT => true, + NS_CONRAD => true, + NS_LAURA => true, + NS_COLA => true + ); wfLoadExtension( 'WikiEditor' ); @@ -252,7 +272,18 @@ wfLoadExtension( 'WikiEditor' ); ####################################### wfLoadExtension( 'Lockdown' ); -$wgNamespacePermissionLockdown[NS_CONRAD]['view'] = [ 'user' ]; +# Lockdown for Conrads NS +$wgNamespacePermissionLockdown[NS_CONRAD]['read'] = [ 'conradgroup' ]; +$wgNamespacePermissionLockdown[NS_CONRAD]['edit'] = [ 'conradgroup' ]; +$wgNonincludableNamespaces[] = NS_CONRAD; +# Lockdown for Lauras NS +$wgNamespacePermissionLockdown[NS_LAURA]['read'] = [ 'lauragroup' ]; +$wgNamespacePermissionLockdown[NS_LAURA]['edit'] = [ 'lauragroup' ]; +$wgNonincludableNamespaces[] = NS_LAURA; +# Lockdown for CoLa NS +$wgNamespacePermissionLockdown[NS_COLA]['read'] = [ 'colagroup' ]; +$wgNamespacePermissionLockdown[NS_COLA]['edit'] = [ 'colagroup' ]; +$wgNonincludableNamespaces[] = NS_COLA; #wfLoadExtension( 'ClipUpload' ); require_once "$IP/extensions/ClipUpload/ClipUpload.php";