From 88e8e33dc29f9f516e46a8f42e581aa1a8dbdc06 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sat, 17 Aug 2024 11:11:36 -0700 Subject: [PATCH] take into account feature flags for sharing --- src/gui/src/UI/UIItem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/src/UI/UIItem.js b/src/gui/src/UI/UIItem.js index e7db916c..2b90b26b 100644 --- a/src/gui/src/UI/UIItem.js +++ b/src/gui/src/UI/UIItem.js @@ -782,7 +782,7 @@ function UIItem(options){ // ------------------------------------------- menu_items.push('-'); } - if(!are_trashed){ + if(!are_trashed && (!window.user.feature_flags || window.user.feature_flags.share !== false)){ menu_items.push({ html: 'Share With…', onClick: async function(){ @@ -1086,7 +1086,7 @@ function UIItem(options){ // ------------------------------------------- // Share With… // ------------------------------------------- - if(!is_trashed && !is_trash){ + if(!is_trashed && !is_trash && (!window.user.feature_flags || window.user.feature_flags.share !== false)){ menu_items.push({ html: 'Share With…', onClick: async function(){