From 0de0302fa97eb96eb261849fc65c0723489dadf2 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 2 Apr 2024 15:24:20 +0200 Subject: [PATCH] add moderator group --- modules/nixos-wiki/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/nixos-wiki/default.nix b/modules/nixos-wiki/default.nix index aea7ebd..0c0f53c 100644 --- a/modules/nixos-wiki/default.nix +++ b/modules/nixos-wiki/default.nix @@ -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; ''; };