Re: Auth1.2 component not showing methods.

2007-08-14 Thread Charlie
But if I check the current source code of the AuthComponent there is no type 'controller' (anymore?) So what would then be the type in $this-Auth-authorize = ? thnx again. - Charlie On Aug 13, 3:58 pm, Gwoo [EMAIL PROTECTED] wrote: You you want to check on based on the action then you

Re: Auth1.2 component not showing methods.

2007-08-14 Thread Dr. Tarique Sani
On 8/14/07, Charlie [EMAIL PROTECTED] wrote: But if I check the current source code of the AuthComponent there is no type 'controller' (anymore?) So what would then be the type in $this-Auth-authorize = ? You are probably looking at the trunk - it is very much there in the branch -

Re: Auth1.2 component not showing methods.

2007-08-14 Thread Charlie
ah! the branch! :) I was looking in the groups and on the cakePHP website but I can't find the svn repository of 'the' branch. Can someone give me that? thnx! - Charlie On Aug 14, 11:13 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 8/14/07, Charlie [EMAIL PROTECTED] wrote: But if I

Re: Auth1.2 component not showing methods.

2007-08-14 Thread Dr. Tarique Sani
On 8/14/07, Charlie [EMAIL PROTECTED] wrote: I was looking in the groups and on the cakePHP website but I can't find the svn repository of 'the' branch. Start here https://trac.cakephp.org/browser T -- = Cheesecake-Photoblog:

Re: Auth1.2 component not showing methods.

2007-08-14 Thread Charlie
Great! thnx! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: Auth1.2 component not showing methods.

2007-08-13 Thread Charlie
Hi, Maybe a bit off-topic but how can I use the requested action in the model I user for authorization? I use type 'model' as authorization: $this-Auth-authorize = array('model'='User'); and I have a function in my user model function isAuthorized($user = null) { //... } In that function I

Re: Auth1.2 component not showing methods.

2007-08-13 Thread Gwoo
You you want to check on based on the action then you should use the controller based auth. Model based auth gets the action based on how the action is mapped to the CRUD. So, in the model that is all you deal with, create, read, update, delete.

Re: Auth1.2 component not showing methods.

2007-08-11 Thread francky06l
Does this mean my ticket for the recursive (in User-find call) will not be added later ? :-( Cheers :-) Franck On Aug 10, 6:37 pm, Gwoo [EMAIL PROTECTED] wrote: the Auth component is not moving anymore --~--~-~--~~~---~--~~ You received this message because

Re: Auth1.2 component not showing methods.

2007-08-10 Thread Gwoo
the Auth component is not moving anymore --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Auth1.2 component not showing methods.

2007-08-10 Thread Dr. Tarique Sani
On 8/10/07, phpjoy [EMAIL PROTECTED] wrote: everything. i tried: $this-Auth-authorize = '*'; This is not a valid option and: $this-Auth-authorize = 'controller'; Ummm this typically goes in your app_controller beforeFilter - there are several ways you can use the auth component

Re: Auth1.2 component not showing methods.

2007-08-10 Thread phpjoy
everything. i tried: $this-Auth-authorize = '*'; and: $this-Auth-authorize = 'controller'; both in the users controller and in the production controller. On Aug 10, 7:18 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 8/10/07, phpjoy [EMAIL PROTECTED] wrote: $this-Auth-userModel =

Re: Auth1.2 component not showing methods.

2007-08-10 Thread Dr. Tarique Sani
On 8/10/07, Gwoo [EMAIL PROTECTED] wrote: the Auth component is not moving anymore Oh Great! I will get down to documenting it again... T -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz:

Re: Auth1.2 component not showing methods.

2007-08-10 Thread phpjoy
Ok I checked some more: The Auth isAuthorized fails here: function isAuthorized($type = null, $user = null, $object = null) { if (empty($user) !$this-user()) {//THIS IS CALLED, FAILS HERE. return false; } } So I went and checked the

Re: Auth1.2 component not showing methods.

2007-08-09 Thread Dr. Tarique Sani
On 8/10/07, phpjoy [EMAIL PROTECTED] wrote: $this-Auth-userModel = 'AdminUser'; $this-Auth-loginAction='/' .CAKE_ADMIN .'/login/'; What is the value for $this-Auth-authorize IOW - what are you using to authorize your actions? Possible values are actions, model, controller Tarique --

Auth1.2 component not showing methods.

2007-08-09 Thread phpjoy
I setup the Auth component, and it's working great for the validation stage. If no session is found, it redirects to /admin/login/ just as it should. $this-Auth-userModel = 'AdminUser'; $this-Auth-loginAction='/' .CAKE_ADMIN .'/login/'; After I get validated (Goes to Users controller and Login