Wednesday, April 28, 2010

Re: How do I get Acl working?

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 <port23user@gmail.com> 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 <phpdad@gmail.com> wrote:
Did you perhaps leave a $this->Auth->allow('*'); in there somewhere?

Matt

On Wed, Apr 28, 2010 at 21:33, Jon Chin <port23user@gmail.com> 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 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
>

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 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

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 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

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 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: