Hello everyone, I wanted to use Cerbos to control ...
# help
s
Hello everyone, I wanted to use Cerbos to control the permission of creating an object in our application. I have noticed that in order to perform a checkResource I need to provide a resourceId, which I don't yet have since I am creating the resource. Right now we used a resourceId of 0 as a placeholder to perform the check. Is there a better solution to this problem ?
a
That is the recommended approach (or something like
new
) for now if you don’t have one yet. Some systems generate a guid upfront so that could be used also.
s
Thank you for your quick response, we do not use UUID generation but we might think about it latter.