diff --git a/src/server/api/endpoints/admin/get-table-stats.ts b/src/server/api/endpoints/admin/get-table-stats.ts index 58c9c6e7c3..5717110b25 100644 --- a/src/server/api/endpoints/admin/get-table-stats.ts +++ b/src/server/api/endpoints/admin/get-table-stats.ts @@ -2,7 +2,8 @@ import define from '../../define'; import { getConnection } from 'typeorm'; export const meta = { - requireCredential: false as const, + requireCredential: true as const, + requireAdmin: true, desc: { 'en-US': 'Get table stats' diff --git a/src/server/api/endpoints/admin/server-info.ts b/src/server/api/endpoints/admin/server-info.ts index 2563ff52ef..1804b9ac70 100644 --- a/src/server/api/endpoints/admin/server-info.ts +++ b/src/server/api/endpoints/admin/server-info.ts @@ -5,7 +5,8 @@ import define from '../../define'; import redis from '../../../../db/redis'; export const meta = { - requireCredential: false as const, + requireCredential: true as const, + requireAdmin: true, desc: { },