Merge pull request #44 from NixOS/moderator_group

add moderator group
This commit is contained in:
lassulus 2024-04-02 15:34:47 +02:00 committed by GitHub
commit 84fba608c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,10 +139,19 @@ in
$wgPygmentizePath = "${pkgs.python3Packages.pygments}/bin/pygmentize";
# Enable extra groups
## enable trusted group
# add extra groups
## add trusted group
$wgGroupPermissions['trusted'] = $wgGroupPermissions['user'];
$wgGroupPermissions['trusted']['delete'] = true;
## add moderator group
$wgGroupPermissions['moderator'] = $wgGroupPermissions['user'];
$wgGroupPermissions['moderator']['delete'] = true;
$wgGroupPermissions['moderator']['blockusers'] = true;
$wgGroupPermissions['moderator']['rollback'] = true;
$wgGroupPermissions['moderator']['viewdeleted'] = true;
$wgGroupPermissions['moderator']['oversight'] = true;
$wgGroupPermissions['moderator']['protect'] = true;
'';
};