Filter articles based on members email address

Hi I am looking to add a section on my members personalised profiles where I can upload training sessions which are specific to the member logged in. I will be adding the sessions so I wanted to know if there is a way of doing this without having to physically log into their page but rather add the session on a database that then points the article to the member based on their email? I have two data collections, the first is called Profile which is has the members profile info and the second is called Members Personlised Sessions which will have their training sessions.

I hope this makes sense.

Thanks in advance.

Simon

Profile code:

$w.onReady( () => {
if (wixUsers.currentUser.loggedIn) {
$w(“#button3”).label = “Logout”;
$w(“#button2”).show();
}
else {
$w(“#button3”).label = “Login”;
$w(“#button2”).hide();
}
} );
export function button3_onclick() {
// user is logged in
if (wixUsers.currentUser.loggedIn) {
// log the user out
wixUsers.logout()
.then( () => {
// update buttons accordingly
$w(“#button3”).label = “Login”;
$w(“#button2”).hide();
} );
}
// user is logged out
else {
let userId;
let userEmail;

// prompt the user to log in
wixUsers.promptLogin( {“mode”: “login”} )
.then( (user) => {
userId = user.id;
return user.getEmail();
} )
.then( (email) => {
// check if there is an item for the user in the collection
userEmail = email;
return wixData.query(“Profile”)
.eq(“_id”, userId)
.find();
} )
.then( (results) => {
// if an item for the user is not found
if (results.items.length === 0) {
// create an item
const toInsert = {
“_id”: userId,
“email”: userEmail
};
// add the item to the collection
wixData.insert(“Profile”, toInsert)
. catch ( (err) => {
console.log(err);
} );
}
// update buttons accordingly
$w(“#button3”).label = “Logout”;
$w(“#button2”).show();
} )
. catch ( (err) => {
console.log(err);
} );
}
}
export function button2_onclick() {
wixLocation.to(/Profile/Update/${wixUsers.currentUser.id});
}