user-access-manager icon indicating copy to clipboard operation
user-access-manager copied to clipboard

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

Open domix75 opened this issue 1 year ago • 1 comments

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

domix75 avatar Jan 08 '24 17:01 domix75

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

tyaty1 avatar May 14 '24 11:05 tyaty1