Galera, sei que o espaço aqui é em inglês, mas sei que tem uma galera
brasileira, que posta aqui. Alguém aqui trabalha com ACL? Estou seguindo o
exemplo abaixo:
http://book.cakephp.org/pt/view/1543/Sistema-Simples-com-controle-ACL-Lista-de-controle
Gostaria de implementar maior restrição à edição de posts, podendo ser
editado somente por quem criou, ou algum gerente.
Estou tentando usar o método afterSave() para adicionar permissão no modelo
Post:
line 33: $this->Acl->allow(array('model' => 'User', 'foreign_key' =>
$this->data['Post']['user_id']), $node[0]['Aco']['id']);
Está exibindo este erro:
Undefined property: Post::$Acl [APP\models\post.php, line 33]
Algum dica?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php