In AppController, I have:

$this->authorize = 'controller';

I have several types of Users, each with a 'model' field set. I'd like
to bar certain types of Users from accessing the forum. In
ForumSectionsController, I have:

function isAuthorized()
{
    return $this->Auth->user('admin') || $this->Auth->user('model') ==
'Member';
}

But other types of Users can gain access. Am I misunderstanding the
point of isAuthorized()? Is it only meaningful in UsersController?

I also tried playing with $this->Auth->userScope in the controller's
beforeFilter() but no dice thus far.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to