Hi dears,
I have implemented authentication, as described on ZF tutorial completed
by informations found on this mailing list.
Everything work fine when not using assertion:
class HyaAclMemberAssertion implements Zend_Acl_Assert_Interface {
public function __construct(Zend_Auth $auth) { //Some code was here}
public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role
= null,
Zend_Acl_Resource_Interface $resource = null, $privilege = null)
{
//To make it very simple, return always false
return false;
}
class HyaAcl extends Zend_Acl {
//This is working fine, edit privilege on lu.ola.Business is deny
$this->deny('member', 'lu.ola.Business', 'edit');
//This is not working, edit privilege on lu.ola.Business is allow
even if a HyaAclMemberAssertion instance always return false
$this->allow('member', 'lu.ola.Business', 'edit', new
HyaAclMemberAssertion($auth));
}
Am I missing something ?!
TIA for your help,
--
Pierre Jeunejean
gérant
[EMAIL PROTECTED]
www.adnexus.be
Wirtzfeld 3a, B-4760 Büllingen
Tel: 0478556586
A D N E X U S
Solutions informatiques Internet en sous-traitance pour les agences
publicitaires.
Solutions informatiques de gestion sur mesure pour les entreprises.