From 8cde07806596234b9d837a6bd19266ee49f9adca Mon Sep 17 00:00:00 2001 From: Rias Date: Wed, 13 Dec 2023 13:26:26 +0100 Subject: [PATCH] Update admin check --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 51de2874..79036fae 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -180,7 +180,7 @@ public function isSpatieMember(): bool return false; } - return Member::where('github', $this->github_username)->exists(); + return Member::where('github', $this->github_username)->exists() || Member::where('email', $this->email)->exists(); } public function owns(Purchasable $purchasable): bool