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:32:52 +0000
commit9ecd38911e6094e2867d490e2da5f65ecedf0370 (patch)
tree7ecb6a1d1d4daf2de0dc9bf130af1547515e6e69
parent637f39f2828a70bc053e8c0f8f2253dc04ae358c (diff)
downloadvolse-hubzilla-9ecd38911e6094e2867d490e2da5f65ecedf0370.tar.gz
volse-hubzilla-9ecd38911e6094e2867d490e2da5f65ecedf0370.tar.bz2
volse-hubzilla-9ecd38911e6094e2867d490e2da5f65ecedf0370.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
(cherry picked from commit 57e32a79125072d27ebc76ca26acac64db5cb4fc)
-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 3589653c1..84f688d36 100644
--- a/include/contact_widgets.php
+++ b/include/contact_widgets.php
@@ -68,12 +68,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');