update
parent
6307db21d9
commit
1587e58fb6
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue