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
This commit is contained in:
Soblow (Opale) Xaselgio 2024-03-03 16:53:23 +01:00 committed by Lugrim
parent d102578b54
commit f8242f8bea
No known key found for this signature in database
GPG key ID: 1CF1D1FB9A327611

View file

@ -67,6 +67,12 @@ webhooks:
default_rank: regular default_rank: regular
# default blocklisted tags (space separated)
default_tag_blocklist: ''
# Apply blocklist for anonymous viewers too
default_tag_blocklist_for_anonymous: yes
privileges: privileges:
'users:create:self': anonymous # Registration permission 'users:create:self': anonymous # Registration permission
'users:create:any': administrator 'users:create:any': administrator
@ -76,11 +82,13 @@ privileges:
'users:edit:any:pass': moderator 'users:edit:any:pass': moderator
'users:edit:any:email': moderator 'users:edit:any:email': moderator
'users:edit:any:avatar': moderator 'users:edit:any:avatar': moderator
'users:edit:any:blocklist': moderator
'users:edit:any:rank': moderator 'users:edit:any:rank': moderator
'users:edit:self:name': regular 'users:edit:self:name': regular
'users:edit:self:pass': regular 'users:edit:self:pass': regular
'users:edit:self:email': regular 'users:edit:self:email': regular
'users:edit:self:avatar': 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:edit:self:rank': moderator # one can't promote themselves or anyone to upper rank than their own.
'users:delete:any': administrator 'users:delete:any': administrator
'users:delete:self': regular 'users:delete:self': regular