public function isAllowed($action, $role = null)
    {
        if ($this->_acl_entity === null)
        {
            return $this->getACL()->getDefaultPolicy(); 
        }
    
        if ($role === null)
        {
            $role = $this->getACL()->getCurrentRole();
        }
    
        return $this->_acl_entity->isAllowed($role, $action, array(get_class($this), "loadByACLID"));
    }
public function isAllowed($action, $role = null)
    {
        if ($this->_acl_entity === null)
        {
            return $this->getACL()->getDefaultPolicy(); 
        }
    
        if ($role === null)
        {
            $role = $this->getACL()->getCurrentRole();
        }
    
        return $this->_acl_entity->isAllowed($role, $action, array(get_class($this), "loadByACLID"));
    }
public function isAllowed ( $ action , $ role = null ) { if ( $ this -> _acl_entity === null ) { return $ this -> getACL ( ) -> getDefaultPolicy ( ) ; } if ( $ role === null ) { $ role = $ this -> getACL ( ) -> getCurrentRole ( ) ; } return $ this -> _acl_entity -> isAllowed ( $ role , $ action , array ( get_class ( $ this ) , "loadByACLID" ) ) ; }
Check if an action is allowed on this object. If the ACL subsystem
is not loaded, true will be returned.

@param $action scalar The action to be performed
@param $role Wedeto\ACL\Role The role that wants to perform an action.
If not specified, the current user is used.
@return boolean True if the action is allowed, false if it is not
@throws Wedeto\ACL\Exception When the role or the action is invalid
Check if an action is allowed on this object . If the ACL subsystem is not loaded true will be returned .