Skip to content

Commit

Permalink
fix(casl-ability): correct instrument endpoint access for unauthentic…
Browse files Browse the repository at this point in the history
…ated users
  • Loading branch information
Junjiequan committed Aug 26, 2024
1 parent d7cb2ea commit 6f9828d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/casl/casl-ability.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6f9828d

Please sign in to comment.