Skip to content

Commit

Permalink
update protected pages to exclude user login page
Browse files Browse the repository at this point in the history
  • Loading branch information
auxonic committed Mar 1, 2023
1 parent 1585ae5 commit 350f338
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function protectedPagesIsPageLocked(string $current_path, string $normal_
// Check all protected pages entries for path match including wildcards.
$all_protected_pages = $this->protectedPagesStorage->loadAllProtectedPages();
foreach ($all_protected_pages as $protected_page) {
if ($this->pathMatcher->matchPath($current_path, $protected_page->path) && $current_path != '/protected-page') {
if ($this->pathMatcher->matchPath($current_path, $protected_page->path) && $current_path != '/protected-page' && $current_path != '/user') {
$pid = $protected_page->pid;
break;
}
Expand Down

0 comments on commit 350f338

Please sign in to comment.