victorious-eye-56567
05/01/2023, 1:36 PMPermissionApi
to generate a client.
Then I have to use the checkPermission
function to test the permission.
What I don’t understand is why the checkPermission
function asks for a relation ?
The payload seems to be the same than for creating a relationship.
I checked the HTTP API and it asks for the same thing.
But in my case I want to test if “userId” can do the action “edit”.
I don’t want to check if “userId” is a member of “editors”.
I want to check actions not relations.
It should be the OPL that is in charge of translating permissions to relation membership based on my OPL rules.
What did I miss ?shy-beach-55709
06/01/2023, 3:54 PMvictorious-eye-56567
06/01/2023, 6:16 PM