OK, found it:

$this->Auth->authorize = 'controller';

instead of 'crud'.

On Thu, Nov 11, 2010 at 2:45 PM, psybear83 <[email protected]> wrote:
> Hi everybody
>
> I'm working with an existing app which uses the Auth and Acl
> components. But because the default Acl component is much too complex
> for the needs of the application I want to get rid of it and only use
> the Auth component with my own small implementation of Acl.
>
> Sadly when removing Acl from the system, Auth still seems to complain
> about missing Acl stuff:
>
> Warning (8): Undefined property: AuthComponent::$Acl [CORE/cake/libs/
> controller/components/auth.php, line 537]
>
> AuthComponent::isAuthorized() - CORE/cake/libs/controller/components/
> auth.php, line 537
> AuthComponent::startup() - CORE/cake/libs/controller/components/
> auth.php, line 445
> Component::triggerCallback() - CORE/cake/libs/controller/
> component.php, line 186
> Controller::startupProcess() - CORE/cake/libs/controller/
> controller.php, line 527
> Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 187
> Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
> [main] - APP/webroot/index.php, line 83
>
> Fatal error: Call to a member function check() on a non-object in /
> Users/josh/Sites/ziviapps/cake/libs/controller/components/auth.php on
> line 537
>
> So I wonder whether Auth only works in combination with Acl? Or are
> there any parameter I can change so it doesn't require Acl?
>
> Thanks
> Josh
>
> 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
>

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

Reply via email to