From e5a243a52b910e35b10b26c06aa8978356b86769 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 2 Dec 2023 14:14:34 +0100 Subject: login and events --- src/Guard.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/Guard.php (limited to 'src/Guard.php') diff --git a/src/Guard.php b/src/Guard.php new file mode 100644 index 0000000..48f05e1 --- /dev/null +++ b/src/Guard.php @@ -0,0 +1,13 @@ + $_SESSION['user']['id'], 'villageId' => $villageId])->fetchColumn(); + + return ! empty($hasVillage); + } +} -- cgit v1.2.3