HI , i have had problems with Cake's ACL.
I have been trying to set this for several days, with no success.... Any help is truly appreciated!!
-- I followed all the tutorials, had AROS, ACOS and AROS_ACOS table generated. I installed the Alexo's ACL plugin and made it work under version 2.5.2 (finally).
I do have problem with the group permissions. Even though I set only one group to be able to access specific action, it still allows another group to view the action too.
Basically, the ACL does not work for me at all. What am I missing?
Bellow is the code from AppController:
public $components = array( 'Acl', 'Auth' => array( 'loginAction' => array( 'controller' => 'users', 'action' => 'login', 'admin' => false ), 'loginRedirect' => array( 'controller' => 'users', 'action' => 'profile', 'admin' => false ), 'logoutRedirect' => array( 'controller' => 'users', 'action' => 'login', 'admin' => false ), 'authError' => 'Please login to continue', 'authenticate' => array( 'Form' => array( 'fields' => array( 'username' => 'username', 'password' => 'pwd' ), 'passwordHasher' => array( 'className' => 'Simple', 'hashType' => 'sha256' ) ) ), 'authorize' => array( 'Actions' => array( 'actionPath' => 'controllers' ) ), /* 'authorize' => array( 'Actions', 'Controller' ), */ ), 'Session' );
public function beforeFilter()
{
// this is from bootstrap to allow development
if (APP_ACL_ENABLED == 0) {
// allow everything
$this->Auth->allow();
} else {
// nothing allowed
$this->Auth->allow(array());
};
} here...
I have been trying to set this for several days, with no success.... Any help is truly appreciated!!
Thank you, Martin
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment