Access parent or parentName or dataProviderName inside of the accessControlProvider Property
We are currently working on the integration of ACLs into our project, but we're stumbling across the passed in
The code does what it should, but only on the Landingpage, where the
As soon as we move to the List-Page, the checks are run again, but this time for every resource item (i.e. specific post) inside of the list. This time the
Any idea on how to solve this?
params object. First of all for clarification some code:The code does what it should, but only on the Landingpage, where the
params.resource will always hold the actual resource it is asking for.As soon as we move to the List-Page, the checks are run again, but this time for every resource item (i.e. specific post) inside of the list. This time the
params.resource is {id: 1} where it holds the resource items ID. This means we can no longer access the params?.resource?.meta?.parent. I thought about using useResource, but that seems a bit like a hacky workaround to me.Any idea on how to solve this?
