CakePHP CakeDC user plugin permision not working

I have a problem that the "cakeDC users" plugin does not work with the bypassAuth that I would get an example of how it should be implemented.

my code:

return [
'CakeDC/Auth.permissions' => [
     [
       'controller' => 'test',
      'action' => ['index'],
      'bypassAuth' => 'true',
    ],....

Thanks in advance.

Upvotes: 1

Views: 92

Answers (1)

steinkel
steinkel

Reputation: 1186

You need to set the 'bypassAuth' => true as the expected type is boolean|null, not string.

Upvotes: 1

Related Questions