mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
take into account feature flags for sharing
This commit is contained in:
parent
54d248e40b
commit
88e8e33dc2
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user