Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-27-2008, 05:49 AM
troy's Avatar
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default ACL Resource -> indexController -> How to isolate?

Hi,
I can't figure out how to apply allow/deny for index.
If I add index as allow for guest, guest gets access everywhere

I like 'guest' to have access everywhere except in the safe module only to login and registration.
What am I doing wrong here?

My dir structure:
Code:
Application
	Default -> indexController
	Modules
		safe -> indexController
		tickets -> indexController
		admin -> indexController
		etc...
PHP Code:
    $this->add(new Zend_Acl_Resource('index'));
    
$this->add(new Zend_Acl_Resource('safe'));
    
$this->add(new Zend_Acl_Resource('login'), 'safe');
    
$this->add(new Zend_Acl_Resource('registration'), 'safe');
        
    
$this->addRole(new Zend_Acl_Role('guest'));
    
$this->deny('guest''safe'NULL);
    
$this->allow('guest''registration');
    
$this->allow('guest''login');
    
$this->allow('guest','index');
        
    
$this->addRole(new Zend_Acl_Role('member'));
    
$this->allow('member''safe'NULL);
        
    
$this->addRole(new Zend_Acl_Role('admin'));
    
$this->allow('admin'); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:52 AM.