[Catalyst] Checking if I can visit a URL

Jose Luis Martinez jlmartinez-lists-catalyst at capside.com
Fri Dec 24 16:06:40 GMT 2010

El 24/12/2010 15:08, Ton Voon escribió:
> Hi!
> Looking in Catalyst::ActionRole::ACL there is a can_visit method, but I
> don't understand how I can invoke that from my own code.

It looks like it attaches to action objects. It would seem that 
$c->dispatcher->get_action_by_path($path) would get you an action object 
for a specific path on which you can call can_visit.

Haven't tried it, though, so good luck ;)

Jose Luis Martinez
jlmartinez at capside.com

More information about the Catalyst mailing list