add has_not_privileges

This commit is contained in:
Howl 2016-10-20 18:14:30 +02:00
parent 043448c429
commit 2f33e94881

View File

@ -79,6 +79,7 @@ func userPutsMulti(md common.MethodData) common.CodeMessager {
Where("users.id = ?", md.Query("iid")).
Where("users.privileges = ?", md.Query("privileges")).
Where("users.privileges & ? > 0", md.Query("has_privileges")).
Where("users.privileges & ? = 0", md.Query("has_not_privileges")).
Where("users_stats.country = ?", md.Query("country")).
Where("users_stats.username_aka = ?", md.Query("name_aka")).
Where("privileges_groups.name = ?", md.Query("privilege_group")).