I'm not entirely sure how I did it but I was finally able to get it
working, for which I am very happy.  While I was mucking about in
rdSimpleAuth to try and figure out how it works to try and figure out
what I might be doing wrong, I did find a small bug in the perm()
method.  Where it checks

if( isset( $flipped[$item] ) && $flipped[$item] >=
$flipped[$this->role] ) {

it should actually be

if( isset( $flipped[$item] ) && $flipped[$item] <=
$flipped[$this->role] ) {

It needs to check if the item is less than or equal to the role.
Otherwise you'll get a situation where Anonymous or Regular User beats
Admin.

thnx,
Christoph


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" 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