From 24675aed05a348b76fa5ec49cb543d2d932a02b7 Mon Sep 17 00:00:00 2001 From: vasikgreif Date: Tue, 9 Feb 2021 10:22:36 +0100 Subject: [PATCH] Fix archive redirect --- src/Access.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Access.php b/src/Access.php index fe7add5..e12ccfb 100644 --- a/src/Access.php +++ b/src/Access.php @@ -71,6 +71,10 @@ public function mioweb_remove_login_redirect() { * Check if the page is protected and the user has access to the page */ public function check_access() { + if ( ! is_singular() ) { + return; + } + $post_groups = $this->get_post_groups(); // If the post is protected and user is not logged in, redirect him to login