FilterWidget: fixed authentication failure because the required permission was missing in the session

This commit is contained in:
Paolo
2018-06-11 14:07:21 +02:00
parent abcdd37e90
commit 9f7dd9d394
3 changed files with 22 additions and 23 deletions
+4 -3
View File
@@ -263,9 +263,6 @@ class FilterWidget extends Widget
// Read the all session for this filter widget
$session = $this->filterslib->getSession();
// To be always stored in the session, otherwise is not possible to load data from Filters controller
$this->filterslib->setElementSession(FiltersLib::REQUIRED_PERMISSIONS_PARAMETER, $this->_requiredPermissions);
// If session is NOT empty -> a filter was already loaded
if ($session != null)
{
@@ -361,6 +358,10 @@ class FilterWidget extends Widget
}
}
}
// To be always stored in the session, otherwise is not possible to load data from Filters controller
// NOTE: must the latest operation to be performed in the session to be shure that is always present
$this->filterslib->setElementSession(FiltersLib::REQUIRED_PERMISSIONS_PARAMETER, $this->_requiredPermissions);
}
/**