Thanks for the suggestions. It turned out that I needed to add $this->Auth->Authorize = 'actions'; to my AppController.
On Wed, Apr 28, 2010 at 11:26 PM, Andrei Mita <[email protected]> wrote: > Try running the build_acl and initDB actions again. Or check in your tables > if you have the restrictions set. > > > > On Thu, Apr 29, 2010 at 8:03 AM, Jon Chin <[email protected]> wrote: > >> I just did a global search and I don't have that anywhere. Maybe I did >> something wrong in my AppController? >> >> class AppController extends Controller { >> var $components = array('Acl', 'Auth', 'Session'); >> function beforeFilter() { >> $this->Auth->fields = array( >> 'username' => 'email', >> 'password' => 'password' >> ); >> $this->Auth->loginAction = array('controller' => 'users', 'action' => >> 'login'); >> $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => >> 'login'); >> $this->Auth->loginRedirect = array('controller' => 'projects', 'action' => >> 'index'); >> $this->Auth->actionPath = 'controllers/'; >> } >> } >> >> On Wed, Apr 28, 2010 at 8:44 PM, Matthew Powell <[email protected]> wrote: >> >>> Did you perhaps leave a $this->Auth->allow('*'); in there somewhere? >>> >>> Matt >>> >>> On Wed, Apr 28, 2010 at 21:33, Jon Chin <[email protected]> wrote: >>> > I'm having a bit of a problem getting Auth+ACL working. I've followed >>> the >>> > Simple Acl Controlled Application example in the Cake book. It >>> is correctly >>> > locking out unauthenticated users from the system. However, all >>> > authenticated users are able to access all ACOs in my site, even if the >>> > group they belong to is denied access. I've been at it for hours, but >>> can't >>> > seem to figure out what I'm doing wrong. Any ideas? >>> > >>> > Check out the new CakePHP Questions site http://cakeqs.org and help >>> others >>> > with their CakePHP related questions. >>> > >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "CakePHP" group. >>> > To post to this group, send email to [email protected] >>> > To unsubscribe from this group, send email to >>> > [email protected]<cake-php%[email protected]>For >>> > more options, visit this group at >>> > http://groups.google.com/group/cake-php?hl=en >>> > >>> >>> Check out the new CakePHP Questions site http://cakeqs.org and help >>> others with their CakePHP related questions. >>> >>> You received this message because you are subscribed to the Google Groups >>> "CakePHP" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected]<cake-php%[email protected]>For >>> more options, visit this group at >>> http://groups.google.com/group/cake-php?hl=en >>> >> >> Check out the new CakePHP Questions site http://cakeqs.org and help >> others with their CakePHP related questions. >> >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<cake-php%[email protected]>For >> more options, visit this group at >> http://groups.google.com/group/cake-php?hl=en >> > > Check out the new CakePHP Questions site http://cakeqs.org and help > others with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "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/cake-php?hl=en
