Let use getUserHook for @UseAbility() guard
Opened this issue · 0 comments
skilef commented
At the moment, only the user from the HTTP request is available in the context of ability check.
nest-casl/src/access.service.ts
Line 57 in 6a012da
Instead, use the user from the user hook:
Line 27 in 6a012da