I'm trying to reproduce the example "Fellowship of the ring" example
explained at CakePHP manual 
http://manual.cakephp.org/view/171/access-control-lists

These are  my AROs ( using cake acl view aro )

Welcome to CakePHP v1.2.0.6311 beta Console
---------------------------------------------------------------
Aro tree:
---------------------------------------------------------------
  [1]Fellowship of the Ring

    [2]Warriors

      [6]Aragorn

      [7]Legolas

      [8]Gimli

    [3]Wizards

      [9]Gandalf

    [4]Hobbits

      [10]Frodo

      [11]Bilbo

      [12]Merry

      [13]Pippin

    [5]Vistors

      [14]Gollum

---------------------------------------------------------------

These are  my ACOs ( using cake acl view aco )
Welcome to CakePHP v1.2.0.6311 beta Console
---------------------------------------------------------------
Aco tree:
---------------------------------------------------------------
  [1]Weapons

  [2]The One Ring

  [3]Salted Pork

  [4]Diplomacy

  [5]Ale

---------------------------------------------------------------

then i set permissions

$this->Acl->allow( 'Warriors', 'Weapons', '*');
$this->Acl->allow( 'Warriors', 'Ale', '*');
$this->Acl->allow( 'Warriors', 'Salted Pork', '*');

$this->Acl->allow(  'Wizards' , 'Salted Pork', '*');
$this->Acl->allow(  'Wizards' , 'Diplomacy', '*');
$this->Acl->allow(  'Wizards' , 'Ale', '*');

$this->Acl->allow(  'Hobbits' , 'Ale', '*');
$this->Acl->allow(  'Frodo' , 'The One Ring', '*');
$this->Acl->deny(  'Merry' , 'Ale', '*');
$this->Acl->allow(  'Pippin' , 'Diplomacy', '*');

$this->Acl->allow(  'Vistors' , 'Salted Pork', '*');

Checking permissions

$this->Acl->check( 'Fellowship of the Ring' , 'Ale', '*') -> FALSE ,
this is OK
$this->Acl->check( 'Hobbits' , 'Ale', '*')); -> TRUE, this is also OK
$this->Acl->check( 'Merry' , 'Ale', '*')); -> TRUE, i think this is
wrong...

Any idea ?

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to