From f8242f8bea8ba5888ce1dcaedd64f512597dfa06 Mon Sep 17 00:00:00 2001 From: "Soblow (Opale) Xaselgio" <113846014+Soblow@users.noreply.github.com> Date: Sun, 3 Mar 2024 16:53:23 +0100 Subject: [PATCH] Blocklist: Add configuration elements: - "default_tag_blocklist": string containing a list of space-separated tags to add to a newly created user blocklist - "default_tag_blocklist_for_anonymous": boolean telling if the above mentionned default blocklist is applied to anonymous users - Added permissions to edit own blocklist, or others --- server/config.yaml.dist | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/config.yaml.dist b/server/config.yaml.dist index 193aac3a..69be858e 100644 --- a/server/config.yaml.dist +++ b/server/config.yaml.dist @@ -67,6 +67,12 @@ webhooks: default_rank: regular +# default blocklisted tags (space separated) +default_tag_blocklist: '' + +# Apply blocklist for anonymous viewers too +default_tag_blocklist_for_anonymous: yes + privileges: 'users:create:self': anonymous # Registration permission 'users:create:any': administrator @@ -76,11 +82,13 @@ privileges: 'users:edit:any:pass': moderator 'users:edit:any:email': moderator 'users:edit:any:avatar': moderator + 'users:edit:any:blocklist': moderator 'users:edit:any:rank': moderator 'users:edit:self:name': regular 'users:edit:self:pass': regular 'users:edit:self:email': regular 'users:edit:self:avatar': regular + 'users:edit:self:blocklist': regular 'users:edit:self:rank': moderator # one can't promote themselves or anyone to upper rank than their own. 'users:delete:any': administrator 'users:delete:self': regular