Hi all,
I almost have the system finished to be able to share specific files with members. However, when I upload a file, it is currently visible by all memebers. Any assistance on what I’m doing wrong? Please see the link I followed, and the code used below
https://www.wix.com/corvid/forum/community-discussion/sharing-files-with-specific-members
import wixUsers from ‘wix-users’ ;
import wixData from ‘wix-data’ ;
$w . onReady ( function () {
let user = wixUsers . currentUser ;
let userEmail ;
user . getEmail (). then ( ( email ) => { userEmail = email ;
$w ( “#dataset1” ). onReady (() => {
$w ( “#dataset1” ). setFilter ( wixData . filter ()
. eq ( “email” , userEmail )
)
})
} );
});