I think more interesting is the question about: which action can the
user visit? With different roles not every user could visit /admin, but
it would be great to know that while building the navigation/links. And
only configurate that at one point!
sub admin :Local :ACL('role:admin') {...}
And than the question: $self->action_for('admin')->can_visit or similar.
Exists something like that?
Currently i build with Authorization::ACL the deny/access rules and in
every template i make a check for the rules needed for a link. And i
cant use one configuration :-/
Jens Schwarz schrieb:
Hi,
with this somewhat philosophic question, I want to know, how a Controller
knows, which of its action is currently active (p.ex. displayed to the user).
And a similar question: How does the root controller know what other
controllers are available in the app?
Thanks
Jens
--
Mit freundlichen Grüßen
Felix Antonius Wilhelm Ostmann
--------------------------------------------------
Websuche Search Technology GmbH & Co. KG
Martinistraße 3 - D-49080 Osnabrück - Germany
Tel.: +49 541 40666-0 - Fax: +49 541 40666-22
Email: [email protected] - Website: www.websuche.de
--------------------------------------------------
AG Osnabrück - HRA 200252 - Ust-Ident: DE814737310
Komplementärin: Websuche Search Technology
Verwaltungs GmbH - AG Osnabrück - HRB 200359
Geschäftsführer: Diplom Kaufmann Martin Steinkamp
--------------------------------------------------
_______________________________________________
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/