Skip to content

Commit

Permalink
Fix check for logged in user
Browse files Browse the repository at this point in the history
  • Loading branch information
mangrose committed Apr 26, 2024
1 parent 6d83bbb commit 7e23ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/class-tulo-payway-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function has_access($post_id = null, $restrictions = null) {
}

// If restrictions only require logged in user, return true if user is logged in
if ($this->restrictions_require_login_only($restrictions)) {
if ($this->restrictions_require_login_only($restrictions) && $this->session->is_logged_in()) {
$this->common->write_log("!! restrictions require login only");
return true;
}
Expand Down

0 comments on commit 7e23ef7

Please sign in to comment.