master
Evan Chen 2021-12-31 23:20:58 +08:00
parent 6307db21d9
commit 1587e58fb6
1 changed files with 2 additions and 2 deletions

View File

@ -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
}