mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +09:00
Fix login access settings for logged in users
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ class UM_Access {
|
||||
|
||||
do_action('um_access_post_settings');
|
||||
|
||||
if ( $this->redirect_handler && $this->allow_access == false && ! um_is_core_page('login') ) {
|
||||
if ( $this->redirect_handler && $this->allow_access == false && ( ! um_is_core_page('login') || um_is_core_page('login') && is_user_logged_in() ) ) {
|
||||
|
||||
// login page add protected page automatically
|
||||
|
||||
|
||||
Reference in New Issue
Block a user