Closed ghost closed 9 years ago
The allow statements can be exactly how you wrote them, but you definitely need to add each resource, or Slim Auth can't query the ACL for the resource (the ACL doesn't know about what you don't add).
For dynamic routes, you need to use the standard Slim route patterns and parameters, and the resource is the exact route pattern.
For example: /list/model/1
probably looks like /list/model/:id
in your Slim routes. The resource would then be $this->addResource('/list/model/:id');
.
Okay, thank you. I haven't tried this. :-)
:+1:
Hi,
every Resource which is not added by my ACL is permitted.
This should allow everything, right? But I cannot access like /list/model/1 or /list/models without explicitliy adding the resource. And then I don't know how to handle dynamic content like the /1 etc.
Thanks for your help in advance.