From 3e958d5bd480d36b5474de082f4c479a36f8ce78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A6=E3=81=83?= =?UTF-8?q?=E3=83=BC?= <56515516+mattyatea@users.noreply.github.com> Date: Sun, 3 Sep 2023 20:08:34 +0900 Subject: [PATCH] Update hybrid-all-timeline.ts --- .../src/server/api/endpoints/notes/hybrid-all-timeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/notes/hybrid-all-timeline.ts b/packages/backend/src/server/api/endpoints/notes/hybrid-all-timeline.ts index b00df57043..dd21438823 100644 --- a/packages/backend/src/server/api/endpoints/notes/hybrid-all-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/hybrid-all-timeline.ts @@ -72,7 +72,7 @@ export default class extends Endpoint { // eslint- private idService: IdService, ) { super(meta, paramDef, async (ps, me) => { - if (!me?.isRoot) throw new Error('access denied'); + if (!me?.isAdmin) throw new Error('access denied'); //#region Construct query const followingQuery = this.followingsRepository.createQueryBuilder('following')