some permission changes
This commit is contained in:
parent
b0cdcb702e
commit
dfd0edfdb1
1 changed files with 39 additions and 8 deletions
|
|
@ -169,6 +169,7 @@ $wgDiff3 = "/usr/bin/diff3";
|
||||||
# Start with assigning the default permissions from group "user" inherited
|
# Start with assigning the default permissions from group "user" inherited
|
||||||
$wgGroupPermissions['conradgroup'] = $wgGroupPermissions['*'];
|
$wgGroupPermissions['conradgroup'] = $wgGroupPermissions['*'];
|
||||||
$wgGroupPermissions['lauragroup'] = $wgGroupPermissions['*'];
|
$wgGroupPermissions['lauragroup'] = $wgGroupPermissions['*'];
|
||||||
|
$wgGroupPermissions['colagroup'] = $wgGroupPermissions['*'];
|
||||||
|
|
||||||
# Namespace definition for Conrad and Laura
|
# Namespace definition for Conrad and Laura
|
||||||
# Define constants for Conrads namespace
|
# 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 constants for Laura namespace
|
||||||
define("NS_LAURA", 3002); // This MUST be even.
|
define("NS_LAURA", 3002); // This MUST be even.
|
||||||
define("NS_LAURA_TALK", 3003); // This MUST be the following odd integer.
|
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.
|
# Add namespaces.
|
||||||
$wgExtraNamespaces[NS_CONRAD] = "Conrad";
|
$wgExtraNamespaces[NS_CONRAD] = "Conrad";
|
||||||
$wgExtraNamespaces[NS_CONRAD_TALK] = "Conrad_talk"; // Note underscores in the namespace name.
|
$wgExtraNamespaces[NS_CONRAD_TALK] = "Conrad_talk"; // Note underscores in the namespace name.
|
||||||
$wgExtraNamespaces[NS_LAURA] = "Laura";
|
$wgExtraNamespaces[NS_LAURA] = "Laura";
|
||||||
$wgExtraNamespaces[NS_LAURA_TALK] = "Laura_talk"; // Note underscores in the namespace name.
|
$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
|
# The following permissions were set based on your choice in the installer
|
||||||
$wgGroupPermissions['*']['createaccount'] = false;
|
$wgGroupPermissions['*']['createaccount'] = false;
|
||||||
$wgGroupPermissions['*']['edit'] = false;
|
$wgGroupPermissions['*']['edit'] = false;
|
||||||
$wgGroupPermissions['*']['read'] = false;
|
$wgGroupPermissions['*']['read'] = false;
|
||||||
|
|
||||||
# Special permissions for User Namespaces
|
# Special Namespace restrictions
|
||||||
$wgNamespaceProtection[NS_CONRAD] = array( 'editconrad' ); // permission "editfoo" required to edit the foo namespace
|
#################################
|
||||||
$wgNamespacesWithSubpages[NS_CONRAD] = true; // subpages enabled for the foo namespace
|
# only for editing per user or group, if viewing restriction is needed use Lockdown extension only
|
||||||
$wgGroupPermissions['conradgroup']['editconrad'] = true; // permission "editfoo" granted to users in the "sysop" group
|
|
||||||
|
|
||||||
# Special permissions for User Namespaces
|
# Special permissions for User Namespaces
|
||||||
$wgNamespaceProtection[NS_LAURA] = array( 'editlaura' ); // permission "editfoo" required to edit the foo namespace
|
#$wgNamespaceProtection[NS_CONRAD] = array( 'editconrad' ); // permission "editfoo" required to edit the foo namespace
|
||||||
$wgNamespacesWithSubpages[NS_LAURA] = true; // subpages enabled for the foo namespace
|
#$wgNamespacesWithSubpages[NS_CONRAD] = true; // subpages enabled for the foo namespace
|
||||||
$wgGroupPermissions['lauragroup']['editlaura'] = true; // permission "editfoo" granted to users in the "sysop" group
|
#$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
|
## Default skin: you can change the default skin. Use the internal symbolic
|
||||||
## names, ie 'vector', 'monobook':
|
## names, ie 'vector', 'monobook':
|
||||||
|
|
@ -240,6 +250,16 @@ wfLoadExtension( 'TemplateData' );
|
||||||
wfLoadExtension( 'TextExtracts' );
|
wfLoadExtension( 'TextExtracts' );
|
||||||
wfLoadExtension( 'TitleBlacklist' );
|
wfLoadExtension( 'TitleBlacklist' );
|
||||||
wfLoadExtension( 'VisualEditor' );
|
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' );
|
wfLoadExtension( 'WikiEditor' );
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -252,7 +272,18 @@ wfLoadExtension( 'WikiEditor' );
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
wfLoadExtension( 'Lockdown' );
|
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' );
|
#wfLoadExtension( 'ClipUpload' );
|
||||||
require_once "$IP/extensions/ClipUpload/ClipUpload.php";
|
require_once "$IP/extensions/ClipUpload/ClipUpload.php";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue