Hi Frnds
I am learning ACL from IBM cakephp tutorials. I have two types of users called "superadmin" and "operator".
Superadmin will have permissions to add,edit,delete,read the product
operator will have permission just only to read
The problem is
I have logged in with a superadmin's account and added one product and when i try to edit it it is not letting me to edit and gives the message that "you cannot modify the product"
the code i have written while adding the product is
$this->Acl->allow('operator',$product_alias,'read');
$this->Acl->allow($this->Session->read('User'),$product_alias,'*');
The code i have written while editing the product is
if ($this->Acl->check($this->Session->read('User'),$id.'-'.$product["Product"]["productname"],'Update'))
Can anyone pls tell me is there any thing wrong in my code.
Thanking you