From 6f9828d32f04d88e00394c21ef99a6975ae78d8c Mon Sep 17 00:00:00 2001 From: junjiequan Date: Fri, 23 Aug 2024 10:37:40 +0200 Subject: [PATCH] fix(casl-ability): correct instrument endpoint access for unauthenticated users --- src/casl/casl-ability.factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/casl/casl-ability.factory.ts b/src/casl/casl-ability.factory.ts index b2e3e1821..628beabf4 100644 --- a/src/casl/casl-ability.factory.ts +++ b/src/casl/casl-ability.factory.ts @@ -298,7 +298,7 @@ export class CaslAbilityFactory { ); if (!user) { - cannot(Action.InstrumentRead, Instrument); + can(Action.InstrumentRead, Instrument); cannot(Action.InstrumentCreate, Instrument); cannot(Action.InstrumentUpdate, Instrument); cannot(Action.InstrumentDelete, Instrument);