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
[email protected]

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to