Hello everyone. I already finished my wix online inventory system. Im going to present it to our organization and hoping they will support for a premium wix upgrade . Everything is working fine with just minimal loading speed delay but I saw some tips on how to work it around, so my main problem as of now is this (please see attached image).
If a user already logged in, will i still check the db/collection permission? =x Note even if a new made site, with just a membership feature, once a user logged in, if you REFRESH the page (press F5) you will be prompt with that message above.
This thing is there but not such a big issue because when you follow the links in your website to navigate to members page, this nessage does not appear, it appears only on refreshing the page or navigating to a members page by copy pasting the url directly in the browser
I have a site members page only , when it loads it shows or displays data on a table & input text , when a site member updates a data it needs the page to refresh/reload in order to show or display the updated data. Since it needs to run again the page load event.
I used the code on button click event wixLocation.to(wixLocation.url); to refresh the current page but sometimes the posted above error will show.
Unless I can run again the load page $w.onReady( function () {}); inside button click event.
I cannot say when this will be fixed. Until then please try removing the permissions on the page and use the following code under your dynamic dataset’s onReady() function
let itemObj = $w("#dynamicDataset").getCurrentItem();
let user = wixUsers.currentUser;
user.getEmail()
.then( (email) => {
if(email === itemObj.email) {
//allow
} else {
//refuse entry
}