Think you want to look at the tutorial at the end of the Cake book/
doco, in particular the acts as requestor stuff
http://book.cakephp.org/view/641/Simple-Acl-controlled-Application
On Jul 28, 7:04 pm, Andraž wrote:
> If I add in User model
> var $actsAs = array('Acl'=>'requester');
>
> Then I get this errors.
>
> Warning (512): Callback parentNode() not defined in Mrartist [CORE/
> cake/libs/model/behaviors/acl.php, line 62]
> Warning (512): Callback parentNode() not defined in Mrcompany [CORE/
> cake/libs/model/behaviors/acl.php, line 62]
> Warning (512): Callback parentNode() not defined in Songwriter [CORE/
> cake/libs/model/behaviors/acl.php, line 62]
>
> This is defined as
>
> var $hasAndBelongsToMany = array(
> 'Songwriter' => array(
> 'className' => 'Song',
> 'joinTable' => 'songwriters',
> 'foreignKey'=> 'user_id',
> 'associationForeignKey'=> 'song_id',
> 'unique'=> true),
> 'Songpublisher' => array(
> 'className' => 'Song',
> 'joinTable' => 'songpublishers',
> 'foreignKey'=> 'user_id',
> 'associationForeignKey'=> 'song_id',
> 'unique'=> true),
> 'Mrartist' => array(
> 'className' => 'MasterRecording',
> 'joinTable' => 'mrartists',
> 'foreignKey'=> 'user_id',
> 'associationForeignKey'=> 'mr_id',
> 'unique'=> true),
> 'Mrcompany' => array(
> 'className' => 'MasterRecording',
> 'joinTable' => 'mrcompanies',
> 'foreignKey'=> 'user_id',
> 'associationForeignKey'=> 'mr_id',
> 'unique'=> true),
> 'Affiliate' => array(
> 'className' => 'User',
> 'joinTable' => 'affiliations',
> 'foreignKey'=> 'user_id',
> 'associationForeignKey'=> 'affiliate_id',
> 'unique'=> true)
> );
>
> Strange is, because for some definitions I get errors and for othes
> there isn't any errors.
>
> Any hint how to resolve this isue?
>
> Regards Andraž
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---