aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-25 17:31:53 +0000
committerMario <mario@mariovavti.com>2024-03-25 17:31:53 +0000
commit57e32a79125072d27ebc76ca26acac64db5cb4fc (patch)
treee677d451da261c841a920ef26df9d3907b7ccc2e
parent6e592ed2005eef2a7ae6fa96d4e1afbbde85523d (diff)
downloadvolse-hubzilla-57e32a79125072d27ebc76ca26acac64db5cb4fc.tar.gz
volse-hubzilla-57e32a79125072d27ebc76ca26acac64db5cb4fc.tar.bz2
volse-hubzilla-57e32a79125072d27ebc76ca26acac64db5cb4fc.zip
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
-rw-r--r--include/contact_widgets.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/contact_widgets.php b/include/contact_widgets.php
index 8ad36e049..e3fbc1057 100644
--- a/include/contact_widgets.php
+++ b/include/contact_widgets.php
@@ -67,12 +67,11 @@ function categories_widget($baseurl,$selected = '') {
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();
- $observer = get_observer_hash();
-
$key = __FUNCTION__ . '_' . md5(App::$profile['profile_uid'] . $observer);
$content = Cache::get($key, '5 MINUTE');