From 2f33e94881189238d857c7e06cdc4a9cdac59ebf Mon Sep 17 00:00:00 2001 From: Howl Date: Thu, 20 Oct 2016 18:14:30 +0200 Subject: [PATCH] add has_not_privileges --- app/v1/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/v1/user.go b/app/v1/user.go index fef6644..a40a81e 100644 --- a/app/v1/user.go +++ b/app/v1/user.go @@ -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")).