cakephp - how use Acl to limit user access -
i have same login 3 different type of users, admin/client/user, has different layout , privileges issue after login every 1 able access pages. after lot of search on google , stack overflow decided use acl. created tables in database via right procedure recommended acl given here accesscontrollist. set permission in following way. still type of user accessing pages.
$this->acl->allow( array('model' => 'user', 'foreign_key' => 1), 'admins' ); $this->acl->allow( array('model' => 'user', 'foreign_key' => 2), 'clients' );
any appreciated.
Comments
Post a Comment