Re: Auth component WITHOUT ACL blocks every controller action
Il 17/04/2012 15:13, DigitalDude ha scritto:
> Hey,
>
>
> I have a little problem with the Auth component. Normally I use it
> together with ACL, everything works finde. Now I have a really small
> Project and I just want to have some authentication without ACL tables
> or different roles.
> ...
> What am I missing here? I do NOT want to use $this->Auth->allow()
> because it makes the actions accessible for EVERYONE and that is what
> I am trying to cover...
>
I think this should works:
// AppController::beforeFilter()
if($this->Auth->user())
$this->Auth->allow();
else
$this->Auth->deny();
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home