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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php