#6261: Auth deny method doesn't respect methods name case
-------------------------------+--------------------------------------------
    Reporter:  biscazziere     |          Type:  Bug   
      Status:  new             |      Priority:  Medium
   Milestone:  1.2.x.x         |     Component:  Auth  
     Version:  1.2 Final       |      Severity:  Normal
    Keywords:  auth deny case  |   Php_version:  PHP 5 
Cake_version:                  |  
-------------------------------+--------------------------------------------
 When using the Auth->deny(), you have to write the name of the methods in
 lowercase, because it does not respect the original method name case. Look
 at this example: http://bin.cakephp.org/view/1219980646.
 My method is called {{{addToFav()}}}, if I do
 {{{$this->Auth->deny('addToFav')}}} then I can access to that method also
 if not logged in. It works as expected instead if I do
 {{{$this->Auth->deny('addtofav')}}}.
 It seems a little bug, but since it regards allowing access to certain
 part of the application, I think the deny method should works in both ways
 I described. I haven't tested the allow method, but probably this problem
 is also there.

 Thanks!

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6261>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets 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/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to