From 1587e58fb6d98862a26f37e8f75e3fa583c0196d Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Fri, 31 Dec 2021 23:20:58 +0800 Subject: [PATCH] update --- auth/helper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/helper.go b/auth/helper.go index 0a654e9..5879f86 100644 --- a/auth/helper.go +++ b/auth/helper.go @@ -113,8 +113,8 @@ select count(*) from user_groups ug, users u where group_id = (select id from groups where name = ?) and user_id <> ? and u.id = user_id -and u.activated = 1 -`, ADMIN, uid).Scan(&count) +and u.activated = ? +`, ADMIN, uid, true).Scan(&count) return count == 0 }