From 1b2455a27e58075fc67858e728e858be01a3a966 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Tue, 21 Nov 2023 16:17:25 +0900 Subject: [PATCH] remove ctlAvailable --- CHANGELOG_CHERRYPICK.md | 3 +++ packages/backend/src/core/RoleService.ts | 3 --- packages/frontend/src/const.ts | 1 - .../frontend/src/pages/admin/roles.editor.vue | 22 +------------------ packages/frontend/src/pages/admin/roles.vue | 8 ------- 5 files changed, 4 insertions(+), 33 deletions(-) diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index a5a02b6fe6..f3becf36be 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -33,6 +33,9 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE 기반 Misskey 버전: 2023.x.x
Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGELOG.md#2023xx) 문서를 참고하십시오. +### Client +- Fix: 역할 설정에 내용을 알 수 없는 설정이 표시됨 + ### Server - Fix: 일부 환경에서 아이콘 장식을 추가할 수 없음 - Fix: 리모트 유저의 프로필 미디어가 잘못된 URL로 표시될 수 있음 diff --git a/packages/backend/src/core/RoleService.ts b/packages/backend/src/core/RoleService.ts index 289e04aa05..9bc9480d6b 100644 --- a/packages/backend/src/core/RoleService.ts +++ b/packages/backend/src/core/RoleService.ts @@ -26,7 +26,6 @@ import type { OnApplicationShutdown } from '@nestjs/common'; export type RolePolicies = { gtlAvailable: boolean; ltlAvailable: boolean; - ctlAvailable: boolean; canPublicNote: boolean; canEditNote: boolean; canInvite: boolean; @@ -54,7 +53,6 @@ export type RolePolicies = { export const DEFAULT_POLICIES: RolePolicies = { gtlAvailable: true, ltlAvailable: true, - ctlAvailable: true, canPublicNote: true, canEditNote: true, canInvite: false, @@ -306,7 +304,6 @@ export class RoleService implements OnApplicationShutdown { return { gtlAvailable: calc('gtlAvailable', vs => vs.some(v => v === true)), ltlAvailable: calc('ltlAvailable', vs => vs.some(v => v === true)), - ctlAvailable: calc('ctlAvailable', vs => vs.some(v => v === true)), canPublicNote: calc('canPublicNote', vs => vs.some(v => v === true)), canEditNote: calc('canEditNote', vs => vs.some(v => v === true)), canInvite: calc('canInvite', vs => vs.some(v => v === true)), diff --git a/packages/frontend/src/const.ts b/packages/frontend/src/const.ts index 7fc8dc858f..79882ddb6d 100644 --- a/packages/frontend/src/const.ts +++ b/packages/frontend/src/const.ts @@ -60,7 +60,6 @@ export const obsoleteNotificationTypes = ['pollVote'/*, 'groupInvited'*/] as con export const ROLE_POLICIES = [ 'gtlAvailable', 'ltlAvailable', - 'ctlAvailable', 'canPublicNote', 'canEditNote', 'canInvite', diff --git a/packages/frontend/src/pages/admin/roles.editor.vue b/packages/frontend/src/pages/admin/roles.editor.vue index fb0719fb4a..c2c31bb003 100644 --- a/packages/frontend/src/pages/admin/roles.editor.vue +++ b/packages/frontend/src/pages/admin/roles.editor.vue @@ -140,26 +140,6 @@ SPDX-License-Identifier: AGPL-3.0-only - - - -
- - - - - - - - - -
-
-