[Catalyst] Acl and Class::C3

Kiefer, Sascha sk at intertivity.com
Wed Jan 25 21:57:01 CET 2006


> That's because the ACL engine throws an error when access is 
> denied. You need to handle this error, see the documentation.
> 
> -- 

Ok, this what i have:

__PACKAGE__->deny_access_unless('/', sub { 0 } );
__PACKAGE__->allow_access_if('/authen/login', sub { 1 } );

ub end : Private {
	my ( $self, $c ) = @_;

	if ( $c->error and $c->error->[-1] =~ /access denied/) {
		$c->forward("/authen/login");
      } else {
		# ...
	}
	# ...
}

But i still get the debug-screen with the same error.
What am i missing?

--esskar




More information about the Catalyst mailing list