I found an acl tutorial that has an access helper and comp.
The access helper checks acl permissions before outputing links.
All works fairly well, though I do have reservations about the way it
crosses the view and controller streams
This is the link
http://net.tutsplus.com/tutorials/php/how-to
i think it is possible but would create quite some overhead...
and yes, it would probably break MVC
On 2 Dez., 10:16, Dan wrote:
> I would like to write a Helper which would check if a given link is
> authorized for the current user.
>
> I'm using CakePHP 2.0. I'm using the AuthComponent with con
I would like to write a Helper which would check if a given link is
authorized for the current user.
I'm using CakePHP 2.0. I'm using the AuthComponent with controller
authorization. So my authorization logic goes into isAuthorized callbacks.
The idea would be to have a helper used in this mann