2011年2月18日星期五

[fw-auth] returning after calling Zend_Acl's isAllowed

when I call Zend_Acl's isAllowed(..) method with a role, resource, or
privilege that is not specified I would say it would return false, but that
does not seem to happen. It does not seem to return at all, or am I doing
something wrong?

my code:

echo 'one';
if(!$this->_acl->isAllowed('blabla' ,'auth', 'login')){
echo 'two';

$request->setControllerName('authentication')->setActionName('unauthorized');
}
echo 'three';

// one is shown, two and three not

--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/returning-after-calling-Zend-Acl-s-isAllowed-tp3313453p3313453.html
Sent from the Zend Auth mailing list archive at Nabble.com.

没有评论: