Skip to content

Commit

Permalink
Merge pull request #68 from redbitcz/fix-archive-redirect
Browse files Browse the repository at this point in the history
Fix archive redirect
  • Loading branch information
jakubboucek authored Feb 23, 2021
2 parents 58c176e + 24675ae commit c955a87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Access.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c955a87

Please sign in to comment.