add verein substructure with group sync
This commit is contained in:
parent
d207d0c008
commit
de1ccbf399
1 changed files with 18 additions and 13 deletions
|
|
@ -32,12 +32,12 @@ $wgMetaNamespace = "Wiki";
|
|||
#### Namespace config
|
||||
define('NS_FSCK', 100);
|
||||
define('NS_FSCK_TALK', 101);
|
||||
define('NS_VEREIN', 200);
|
||||
define('NS_VEREIN_TALK', 201);
|
||||
define('NS_VORSTAND', 200);
|
||||
define('NS_VORSTAND_TALK', 201);
|
||||
$wgExtraNamespaces[NS_FSCK] = 'FSCK';
|
||||
$wgExtraNamespaces[NS_FSCK_TALK] = 'FSCK_Diskussion';
|
||||
$wgExtraNamespaces[NS_VEREIN] = 'Verein';
|
||||
$wgExtraNamespaces[NS_VEREIN_TALK] = 'Verein_Diskussion';
|
||||
$wgExtraNamespaces[NS_VORSTAND] = 'Vorstand';
|
||||
$wgExtraNamespaces[NS_VORSTAND_TALK] = 'Vorstand_Diskussion';
|
||||
|
||||
## The URL base path to the directory containing the wiki;
|
||||
## defaults for all runtime URL paths are based off of this.
|
||||
|
|
@ -205,6 +205,9 @@ $wgGroupPermissions['orga-users']['createpage'] = true;
|
|||
$wgGroupPermissions['orga-fsck']['edit'] = true;
|
||||
$wgGroupPermissions['orga-fsck']['read'] = true;
|
||||
$wgGroupPermissions['orga-fsck']['createpage'] = true;
|
||||
$wgGroupPermissions['orga-vorstand']['edit'] = true;
|
||||
$wgGroupPermissions['orga-vorstand']['read'] = true;
|
||||
$wgGroupPermissions['orga-vorstand']['createpage'] = true;
|
||||
$wgGroupPermissions['orga-verein']['edit'] = true;
|
||||
$wgGroupPermissions['orga-verein']['read'] = true;
|
||||
$wgGroupPermissions['orga-verein']['createpage'] = true;
|
||||
|
|
@ -217,6 +220,7 @@ $wgGroupPermissions['sysop']['createpage'] = true;
|
|||
#### Lockdown configuration
|
||||
$wgSpecialPageLockdown['Export'] = ['user'];
|
||||
$wgSpecialPageLockdown['Recentchanges'] = ['user'];
|
||||
$wgNamespacePermissionLockdown[NS_MAIN]['read'] = ['orga-users'];
|
||||
|
||||
# remove most namespace permissions
|
||||
$wgNamespacePermissionLockdown['*']['read'] = ['sysop'];
|
||||
|
|
@ -226,7 +230,7 @@ $wgNamespacePermissionLockdown['*']['createpage'] = ['sysop'];
|
|||
# limit template workaround
|
||||
$wgNonincludableNamespaces[] = NS_MAIN;
|
||||
$wgNonincludableNamespaces[] = NS_PROJECT;
|
||||
$wgNonincludableNamespaces[] = NS_VEREIN;
|
||||
$wgNonincludableNamespaces[] = NS_VORSTAND;
|
||||
$wgNonincludableNamespaces[] = NS_FSCK;
|
||||
|
||||
# FSCK namespace
|
||||
|
|
@ -235,9 +239,9 @@ $wgNamespacePermissionLockdown[NS_FSCK]['edit'] = [ 'orga-fsck' ];
|
|||
$wgNamespacePermissionLockdown[NS_FSCK]['createpage'] = [ 'orga-fsck' ];
|
||||
|
||||
# Verein namespace
|
||||
$wgNamespacePermissionLockdown[NS_VEREIN]['read'] = [ 'orga-verein' ];
|
||||
$wgNamespacePermissionLockdown[NS_VEREIN]['edit'] = [ 'orga-verein' ];
|
||||
$wgNamespacePermissionLockdown[NS_VEREIN]['createpage'] = [ 'orga-verein' ];
|
||||
$wgNamespacePermissionLockdown[NS_VORSTAND]['read'] = [ 'orga-vorstand' ];
|
||||
$wgNamespacePermissionLockdown[NS_VORSTAND]['edit'] = [ 'orga-vorstand' ];
|
||||
$wgNamespacePermissionLockdown[NS_VORSTAND]['createpage'] = [ 'orga-vorstand' ];
|
||||
|
||||
#### SSO config
|
||||
# necessary to allow admin user(s) to login
|
||||
|
|
@ -259,7 +263,8 @@ $wgPluggableAuth_Config["Chaostreff Backnang IdP"] = [
|
|||
'interface-admin' => [ 'groups' => '/mediawiki/admins' ],
|
||||
'orga-users' => [ 'groups' => '/orgawiki/users' ],
|
||||
'orga-fsck' => [ 'groups' => '/ctbk/fsck' ],
|
||||
'orga-verein' => [ 'groups' => '/todo-verein-orga' ]
|
||||
'orga-vorstand' => [ 'groups' => '/ctbk/vorstand' ],
|
||||
'orga-verein' => [ 'groups' => '/ctbk/members' ]
|
||||
]
|
||||
]
|
||||
]
|
||||
|
|
@ -282,15 +287,15 @@ $smwgURITypeSchemeList = array_merge($smwgURITypeSchemeList, ['matrix']);
|
|||
### Namespace attributes
|
||||
$wgNamespacesWithSubpages[NS_MAIN] = true;
|
||||
$wgNamespacesWithSubpages[NS_FSCK] = true;
|
||||
$wgNamespacesWithSubpages[NS_VEREIN] = true;
|
||||
$wgNamespacesWithSubpages[NS_VORSTAND] = true;
|
||||
$wgNamespacesWithSubpages[NS_TEMPLATE] = true;
|
||||
# SMW enabled on custom namespaces
|
||||
$smwgNamespacesWithSemanticLinks[NS_FSCK] = true;
|
||||
$smwgNamespacesWithSemanticLinks[NS_FSCK_TALK] = true;
|
||||
$smwgNamespacesWithSemanticLinks[NS_VEREIN] = true;
|
||||
$smwgNamespacesWithSemanticLinks[NS_VEREIN_TALK] = true;
|
||||
$smwgNamespacesWithSemanticLinks[NS_VORSTAND] = true;
|
||||
$smwgNamespacesWithSemanticLinks[NS_VORSTAND_TALK] = true;
|
||||
$wgContentNamespaces[] = NS_FSCK;
|
||||
$wgContentNamespaces[] = NS_VEREIN;
|
||||
$wgContentNamespaces[] = NS_VORSTAND;
|
||||
|
||||
# Allow user functions in all namespaces, needed for main page based on group membership
|
||||
$wgUFAllowedNamespaces = array_fill( 0, 300, true );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue