diff --git a/backend/src/server/plugins/auth/inject-permission.ts b/backend/src/server/plugins/auth/inject-permission.ts index b76c735f0..92fbfff1d 100644 --- a/backend/src/server/plugins/auth/inject-permission.ts +++ b/backend/src/server/plugins/auth/inject-permission.ts @@ -8,10 +8,6 @@ export const injectPermission = fp(async (server) => { server.addHook("onRequest", async (req) => { if (!req.auth) return; - // if (!req.auth.authMethod) { - // throw new Error("THIS SHOULD NOT HAPPEN"); - // } - if (req.auth.actor === ActorType.USER) { req.permission = { type: ActorType.USER,