take into account feature flags for sharing

This commit is contained in:
Nariman Jelveh 2024-08-17 11:11:36 -07:00
parent 54d248e40b
commit 88e8e33dc2

View File

@ -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(){