Blocklist: Add frontend elements:

- New field in User profile edition to add/remove tags from their blocklist
- This field works as other tag fields, with auto-completion, and a proper list under the textbox
- User must have the right permissions to edit blocklist (either their own or other users')
This commit is contained in:
Soblow (Opale) Xaselgio
2024-03-03 16:53:23 +01:00
committed by Lugrim
parent f8242f8bea
commit e5f61d2c31
4 changed files with 49 additions and 0 deletions

View File

@ -89,6 +89,7 @@ class UserController {
canEditAvatar: api.hasPrivilege(
`users:edit:${infix}:avatar`
),
canEditBlocklist: api.hasPrivilege(`users:edit:${infix}:blocklist`),
canEditAnything: api.hasPrivilege(`users:edit:${infix}`),
canListTokens: api.hasPrivilege(
`userTokens:list:${infix}`