User does not have permission to logout on published site? what is going on here please, this page is designated in permissions for everyone and previously in published state when testing the code below this has allowed me to log out and test the dynamic page as a non-logged in user?
so when i copy a dynamic page url into the browser i also get this 403 message which shouldn't occur as the dynamic page was designed to allow non-logged in users to view the page also if they have the url
a separate issue but maybe worth adding is that some recent content added to my dynamic page is not showing on the published site when published. This is two new reapeaters that i've added to the dynamic page, with everyone permissions and the collections synced to live site.
I'm hoping to fix these issues this morning
I'm wondering whether its to do with this code which has been included to check between logged in user and a non-logged in user
let user = wixUsers.currentUser;
let isLoggedIn = user.loggedIn;
$w.onReady(() => {
if (isLoggedIn){
doIfLoggedIn();
} else {
$w("#columnStrip13").expand();
$w("#columnStrip12").collapse();
}
wixUsers.onLogin(u => {
isLoggedIn = u.loggedIn;
doIfLoggedIn();
})
function doIfLoggedIn(){
$w("#columnStrip12").expand();
$w("#columnStrip13").collapse();
}
The fix. I had to change the permissions on one of my collections which now allows the user to logout. Which also now show the correct message for a non-logged in user.
still don't know why a new repeater is not showing on my published site though but thats my next question.
Regards
Adam