Take a look at:
$this->Auth->allow('*');
---
kiang
On Feb 1, 9:01 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Few days ago I've started learn how to use auth + acl. It's seems to
> work in my app :-) User belongs to a group, so when is logged he has
> access to controller/actions which i set for his group.
> I used bellow code in my app_controller:
>
> function beforeFilter() {
> parent::beforeFilter();
>
> if (isset($this->Auth)) {
> $this->Auth->authorize = 'actions';
> $this->Auth->userScope = array('User.active' => 1);
> $this->Auth->loginAction = '/users/login';
> $this->Auth->loginError = 'Błąd logowania.
> Nieprawdłowa nazwa
> użytkownika lub hasło.';
> $this->Auth->authError = 'Brak dostępu.';
> $this->Auth->loginRedirect = '/pages/welcome';
>
> if (in_array(low($this->params['controller']),
> $this->publicControllers)) {
>
> $this->Auth->allow();
> }
> }
>
> }
>
> Now I am wondering how to handle users who aren't logged. I was
> reading cake groups and found one idea - create i. eg. Public group,
> set it some access actions and when user is not logged in set him
> membership to Public group. Is it a good idea? If yes how i can
> implement this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---