Skip to content

Commit

Permalink
take into account feature flags for sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
jelveh committed Aug 17, 2024
1 parent 54d248e commit 88e8e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/src/UI/UIItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down Expand Up @@ -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(){
Expand Down

0 comments on commit 88e8e33

Please sign in to comment.