add observer to the permissions query. this should not be necessary but it makes it clear why it should be included in the cache key

(cherry picked from commit 57e32a7912)
This commit is contained in:
Mario
2024-03-25 17:31:53 +00:00
parent 637f39f282
commit 9ecd38911e

View File

@@ -68,12 +68,11 @@ function categories_widget($baseurl,$selected = '') {
require_once('include/security.php'); require_once('include/security.php');
$sql_extra = item_permissions_sql(App::$profile['profile_uid']); $observer = get_observer_hash();
$sql_extra = item_permissions_sql(App::$profile['profile_uid'], $observer);
$item_normal = item_normal(); $item_normal = item_normal();
$observer = get_observer_hash();
$key = __FUNCTION__ . '_' . md5(App::$profile['profile_uid'] . $observer); $key = __FUNCTION__ . '_' . md5(App::$profile['profile_uid'] . $observer);
$content = Cache::get($key, '5 MINUTE'); $content = Cache::get($key, '5 MINUTE');