import wixUsers from 'wix-users';
let user = wixUsers.currentUser;
$w.onReady(function(){
$w("#button1").hide();
if(user.loggedIn){
user.getRoles()
.then( (roles) => {
if (roles.some(r => r.name === "Admin")){
$w("#button1").show();
}
});
}
})