I think in othAuth component is bug. When i login as user witch dont
have all permission (*) I always redirect to login page, even if i have
set permission visit access_page for user.

In this part of code is bug from my opinion:

       if(is_string($this->controller->othAuthRestrictions))
       {
           $is_checkall   = $this->controller->othAuthRestrictions ===
"*";
           $is_cake_admin = defined('CAKE_ADMIN') &&
($this->controller->othAuthRestrictions === CAKE_ADMIN);
           if($is_checkall || $is_cake_admin)
           {
               foreach($ses_perms as $p)
               {
                   if(strpos($c_a_p,strtolower($p['name'])) === 0)
                   {
                       $return = true;
                       break;
                   }
               }
           }
       }

---- This part change ---
                  if(strpos($c_a_p,strtolower($p['name'])) === 0)
                   {
                       $return = true;
                       break;
                   }
-----
This good:
----
                if(strpos($c_a_p,strtolower($p['name'])) === false)
                   {

                   }else{
                        $return = true;
                       break;
                   }

----


--~--~---------~--~----~------------~-------~--~----~
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