mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-28 16:40:18 -06:00
take into account feature flags for sharing
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user