From aa4493fe5c7a7bdf866a718c61432ee0cf539ccd Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 21 Oct 2020 19:36:47 +0900 Subject: [PATCH] Fix api permission definition --- src/server/api/endpoints/admin/get-table-stats.ts | 1 - src/server/api/endpoints/admin/server-info.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/server/api/endpoints/admin/get-table-stats.ts b/src/server/api/endpoints/admin/get-table-stats.ts index c23f269437..eb9f26fc05 100644 --- a/src/server/api/endpoints/admin/get-table-stats.ts +++ b/src/server/api/endpoints/admin/get-table-stats.ts @@ -3,7 +3,6 @@ import { getConnection } from 'typeorm'; export const meta = { requireCredential: true as const, - requireAdmin: true, requireModerator: true, desc: { diff --git a/src/server/api/endpoints/admin/server-info.ts b/src/server/api/endpoints/admin/server-info.ts index f697f02e91..de4e933471 100644 --- a/src/server/api/endpoints/admin/server-info.ts +++ b/src/server/api/endpoints/admin/server-info.ts @@ -6,7 +6,6 @@ import redis from '../../../../db/redis'; export const meta = { requireCredential: true as const, - requireAdmin: true, requireModerator: true, desc: {