fix: Fixed an invalid user call in the paginator

pull/2451/merge
iglocska 2017-09-04 09:01:08 +02:00
parent 61450f3d2f
commit 2f02097590
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class EventsController extends AppController {
// if not admin or own org, check private as well..
if (!$this->_isSiteAdmin() && in_array($this->action, $this->paginationFunctions)) {
$sgids = $this->Event->cacheSgids($user, true);
$sgids = $this->Event->cacheSgids($this->Auth->user(), true);
$conditions = array(
'AND' => array(
array(