Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Giraffaman committed Feb 25, 2024
1 parent cbf38b4 commit 1841471
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ext/pools/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ public function onPageSubNavBuilding(PageSubNavBuildingEvent $event): void
public function onPageRequest(PageRequestEvent $event): void
{
global $config, $database, $page, $user;
if($event->page_matches("pool{/}") && (! $user->is_logged_in())) {
$errMessage = "You must be registered and logged in to use pools.";
$this->theme->display_error(401, "Unauthorized", $errMessage);
if(! $user->is_logged_in()) {
# don't do anything pool-related for anon users
return;
} else {
if (
Expand Down

0 comments on commit 1841471

Please sign in to comment.