From 1d648211f072bba6e5c04a6944eb720e0355b0b3 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Thu, 14 Jan 2021 19:01:10 -0800 Subject: added config file for server defaults --- verification.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'verification.go') diff --git a/verification.go b/verification.go index f233fe6..c8d46be 100644 --- a/verification.go +++ b/verification.go @@ -301,10 +301,10 @@ func IsEmailSetup() bool { } func HasAuth(db *sql.DB, code string, board string) bool { - + verify := GetVerificationByCode(db, code) - if HasBoardAccess(db, verify) { + if verify.Board == Domain || (HasBoardAccess(db, verify) && verify.Board == board) { return true } -- cgit v1.2.3