From 4f334525c2fcb17bee095a02495a025c7bf1a501 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 1 Nov 2023 15:38:53 +0000 Subject: only show tools to creators if they still have perms --- Zotlabs/Storage/Browser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Storage/Browser.php b/Zotlabs/Storage/Browser.php index 590c1cd9c..912b4442d 100644 --- a/Zotlabs/Storage/Browser.php +++ b/Zotlabs/Storage/Browser.php @@ -209,7 +209,6 @@ class Browser extends DAV\Browser\Plugin { // upload access. system.thumbnail_security should be set to 1 if you want to include these // types - $is_creator = false; $photo_icon = ''; $preview_style = intval(get_config('system','thumbnail_security',0)); @@ -369,6 +368,7 @@ class Browser extends DAV\Browser\Plugin { '$upload' => t('Add Files'), '$is_owner' => $is_owner, '$is_admin' => is_site_admin(), + '$has_perms' => perm_is_allowed($channel_id, get_observer_hash(), 'write_storage'), '$admin_delete_label' => t('Admin Delete'), '$parentpath' => $parent_path, '$folder_parent' => $folder_parent, -- cgit v1.2.3