My PrivateMembersData collections are not allowing me to display items on the site or filter data on the online site.
Can someone help me?
You can use it in the front-end only if you’re logged in as Admin (if you’re not, you’ll be able to see your own data inly and not any data of other members.
If you want to display private data of other users to non-Admin members, you;ll run the query on the back end using suppressAuth and return it to the front-end (put the backend export function in a jsw file and import it to the front-end).
https://www.wix.com/velo/reference/wix-data/wixdataquery/find
I only display private data to logged in members, however today it stopped working. Looks like some update that restricted access to PrivateMembers
I have troubles with the wixMembers function which seems to work only for Admins since yesterday. Could be linked!
currentMember.getMember()
I also have the same problem since yesterday. site member author can not view the content. members name and surname do not display in the site.
Same problem since today morning. Impacting business. Wix pls assist.
who is responsible for this issue?
It’s a disaster, we manage 20 sites with members who modify their elements from forms filtered by privatemember. But why has everything changed? it is urgent to restore
Our connected members no longer see their data since this morning
Hello again. I just fixed this issue.
import { currentMember } from ‘wix-members’ ;
currentMember . getMember ()
. then (( member ) => {
const id = member._id ;
const fullName = ${ member.contactDetails.firstName } ${ member.contactDetails.lastName }
;
const email = ${ member.loginEmail }
;
$w ( '#name' ). value = fullName ;
$w ( '#email' ). value = email ;
// return member;
})
. catch (( error ) => {
console . error ( error );
});
This is the new code, with this code you can display the user NAME and Email on the site. hope it will help you,
Nick.
Fantastic, it works thank you very much my new friend
You are Welcome!