Resource for a single user

How would you define a resource which is only accessible for a single user? That user can only see (and access) that resource and no others. I feel like adding policies to all is a bit cumbersome. So I thought there might be an easier solution.
5 Replies
Dennis Koch
Dennis Koch2y ago
I think you can also add canView() to the resources.
Johan
JohanOP2y ago
Does this also protect from accessing, create, deleting etc? In the other resources I mean (if they know the routes)
Dennis Koch
Dennis Koch2y ago
It should. But also needs to defined in every resource.
Johan
JohanOP2y ago
That should be fine, feels less cumbersome then defining policies for each resource Thanks Dennis
Dennis Koch
Dennis Koch2y ago
You’re welcome
Want results from more Discord servers?
Add your server