Closed rtatarinov closed 10 months ago
@rtatarinov I see you marked it completed, assuming you had some misconfiguration happened. Could you outline what was wrong real quick and what could be done to prevent it in the future? Maybe add some bit of info to README
Hi, I just use very simple example from documentation I have the following code
Register
nest-casl
in moduleEntity is
The permisiion file is
And my controller is
And the problem is user with
Guest
role can update the user withTeacher
role. Also it's about@Get(:id)
. Also any of this user can updateAdmin
. How can fix it?And the second problem is
can(Actions.read, EmployeeEntity, { id: user.id });
also works forfindAll
method. But I wanna allow read user only himself