[Catalyst] Why no extra attributes on Private actions?

Jonathan Rockway jon at jrock.us
Tue Jan 22 17:44:39 GMT 2008


On Tue, 2008-01-22 at 09:29 -0800, Bill Moseley wrote:
> This came up because I'm using "SSL" to indicate actions that require
> SSL:
> 
>     sub secret : Local SSL {}
> 
> 
> But, it would also be handy to be able to protect all actions below 
> a give controller via:
> 
>     sub auto : Private SSL { 1 }


I don't think this is a great idea, but if you insist, feel free to
override register_actions.  (Personally I would use the ACL plugin to
implement the "only dispatchable to if SSL" logic.)

Regards,
Jonathan Rockway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080122/da0ff53e/attachment.pgp


More information about the Catalyst mailing list