Вопрос

Showing recents posts in an element by requestAction method is great, but it causes redundant queries if ACL is used. Is there a way to disable those?

Note: My version of CakePHP is 2.4.2

Это было полезно?

Решение

I was having the same problem as you, but after 2 days of Googling I found: https://stackoverflow.com/a/14592940

Put the following code in:

AppController::beforeFilter()

if (isset($this->params['requested'])) $this->Auth->allow($this->action);

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top