summaryrefslogtreecommitdiff
path: root/packages/backend/src/models
diff options
context:
space:
mode:
authorSayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>2024-07-14 09:31:05 +0900
committerGitHub <noreply@github.com>2024-07-14 09:31:05 +0900
commit7afa593d114335368d9031b6e1d5b1edbc4ea9c9 (patch)
tree17b57ed871c29b4f27aee48f5a5af3b269a0379c /packages/backend/src/models
parentfix(backend): 一般ユーザーから見たユーザーのバッジの一覧... (diff)
downloadmisskey-7afa593d114335368d9031b6e1d5b1edbc4ea9c9.tar.gz
misskey-7afa593d114335368d9031b6e1d5b1edbc4ea9c9.tar.bz2
misskey-7afa593d114335368d9031b6e1d5b1edbc4ea9c9.zip
Feat: ユーザーのアイコン/バナーの変更可否をロールで設定可能に (#14078)
* feat: implement role policy "canUpdateBioMedia" * docs(changelog): update changelog * docs(changelog): update changelog * chore: regenerate misskey-js type definitions * chore: Apply suggestion from code review Co-authored-by: anatawa12 <anatawa12@icloud.com> * chore: fix unnecessarily strict inequality check * chore: policies should be gotten only once --------- Co-authored-by: anatawa12 <anatawa12@icloud.com>
Diffstat (limited to 'packages/backend/src/models')
-rw-r--r--packages/backend/src/models/json-schema/role.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/backend/src/models/json-schema/role.ts b/packages/backend/src/models/json-schema/role.ts
index d9987a70c3..7366f05356 100644
--- a/packages/backend/src/models/json-schema/role.ts
+++ b/packages/backend/src/models/json-schema/role.ts
@@ -228,6 +228,10 @@ export const packedRolePoliciesSchema = {
type: 'boolean',
optional: false, nullable: false,
},
+ canUpdateBioMedia: {
+ type: 'boolean',
+ optional: false, nullable: false,
+ },
pinLimit: {
type: 'integer',
optional: false, nullable: false,