Saturday, March 28, 2009

Re: Auth Unexpected Behavior

Hi JamesF, thanks a lot for your answer. I'm kind of new to this hole
framework but at least the mayor part, if not all, of the Auth and Acl
setup got it from book.cakephp.org from reading "Simple Acl controlled
Application" (example applications) and the Auth and Acl components
docs, including the "$this->Auth->allowedActions=array
('display','index','view');" and "$this->Auth->authorize = 'actions';"
instructions. As I understand this tells auth, take control of actions
and this ones are allowed for anyone, but now that you mention it, i'm
going to try swapping their order, and i'll also try as you suggest.

What you mean with "not sure if all of your actions are in
app_controller"?
If you have no before filter in controller, dosent it executes by
default appcontroller's beforeFilter?

About the CamelCased stuff..ups, thanks for that one, that explains
the stuff with the naming.
What does remain a mistery is why using swfupload Auth->user is null
in the /uploads_controller/upload action (made ajaxly), I think i'll
post a separate topic for that, maybe someone familiar with swfupload
sees the title and have an idea... cause i dont. By the way, i'm using
2.2.0 Beta 5 2008-01-29, any ideas, anyone?

My workaround was the followin (in pseudo-code)
if(RequestHandler->isAjax) auth->allow('upload')

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

No comments: