Ok I think I got it :)  this is in my App/Controller/Plugin/Acl.php

        $module = $request->module;
        $control = $request->controller;
        $action = $request->action; 

        if($module != 'default'){
                $resource = $module.":".$control;
        } else {
                $resource = $module;
        }

And I define rules
  $this->add(new Zend_Acl_Resource('default'));
  $this->add(new Zend_Acl_Resource('admin'));
  $this->add(new Zend_Acl_Resource('member'));
                
  // Specific Resources
  $this->add(new Zend_Acl_Resource('member:profile'), 'member');

$this->allow('guest','default');
$this->allow('guest','member:profile',array('index'));

Thx again Matthew

Eric
        
        if (!$this->_acl->has($resource)) {
            $resource = null;
        }

        if (!$this->_acl->isAllowed($role, $resource,$action)) {

        }
-- 
View this message in context: 
http://www.nabble.com/Acl-Questions-tp22189844p22196663.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to