Adjusting acl
This commit is contained in:
parent
a5ccb9c6fb
commit
b2c54ec874
2 changed files with 11 additions and 11 deletions
|
|
@ -50,13 +50,13 @@ class Acl extends Zend_Acl
|
|||
protected function loadAccess()
|
||||
{
|
||||
// Set default rules
|
||||
$this->_setDefaultAccess();
|
||||
#$this->_setDefaultAccess();
|
||||
|
||||
// Blog
|
||||
$this->allow(self::ROLE_MEMBER, 'blog', 'comment');
|
||||
|
||||
// Profile
|
||||
$this->deny(self::ROLE_VISITOR,'profile','read');
|
||||
|
||||
|
||||
// Admin
|
||||
$this->allow(self::ROLE_FIKTIV, 'admin', array('read', 'write', 'delete'));
|
||||
|
|
|
|||
|
|
@ -52,15 +52,15 @@
|
|||
<action>index</action>
|
||||
</portfolio>
|
||||
|
||||
<dummy>
|
||||
<label>u:dummy</label>
|
||||
<route>default</route>
|
||||
<moudule>default</moudule>
|
||||
<controller>dummy</controller>
|
||||
<action>dummy</action>
|
||||
<resource>blog</resource>
|
||||
<privilege>write</privilege>
|
||||
</dummy>
|
||||
<admin>
|
||||
<label>u:admin</label>
|
||||
<route>admin</route>
|
||||
<module>admin</module>
|
||||
<controller>index</controller>
|
||||
<action>index</action>
|
||||
<resource>admin</resource>
|
||||
<privilege>read</privilege>
|
||||
</admin>
|
||||
|
||||
<about>
|
||||
<label>uw:about</label>
|
||||
|
|
|
|||
Reference in a new issue