Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multisite users connected to other sites can't access free pages #387

Open
domix75 opened this issue Jan 8, 2024 · 1 comment
Open

multisite users connected to other sites can't access free pages #387

domix75 opened this issue Jan 8, 2024 · 1 comment

Comments

@domix75
Copy link

domix75 commented Jan 8, 2024

Thanks for this extension.
I'm using multisite and experience one problem: If a user of site A is connected and then opens site B where he/she is not registered, this user cannot access to free access pages (the pages that people who are not connected at all can access). So he/she would need to disconnect (which also disconnects from site A)
It does not seem to me that it is a wanted feature. (?)
Any hint ? thanks
ps: using 2.2.23 on top of WP 6.4.2-fr_FR

@tyaty1
Copy link

tyaty1 commented May 14, 2024

Add this snippet into isUserLoggedIn method in the Wordpress.php
if(is_user_logged_in() && is_multisite() && !is_user_member_of_blog()){ return false; }
I had the exact same same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants