Understanding roles and permissions
I'm trying to use modifyQueryUsing in the resource before the table
what i want to achive is
- show all the records to user with the Super Admin or Manager roles (NOT WORKS)
- show records to user only if he is the author (WORKS)
- show records to supervisor (responsible in my case) (WORKS)
now i have this code
the last orWhereIn doesn't works
any help is appreciated
1 Reply
this solution works, is the best solution possible?