summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-04 16:56:18 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-04 16:56:18 -0700
commite54d0da392119e75788f3d5a431b85e931a7e824 (patch)
treed2e3711db047060fb1e5db60dfc658949a697995 /api
parent58d0d9afd286afd715e9f04825e1305045d404e2 (diff)
downloadchat-e54d0da392119e75788f3d5a431b85e931a7e824.tar.gz
chat-e54d0da392119e75788f3d5a431b85e931a7e824.tar.bz2
chat-e54d0da392119e75788f3d5a431b85e931a7e824.zip
Adding unit tests for cmd line
Diffstat (limited to 'api')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index f4ebcaaf8..48f974dd5 100644
--- a/api/user.go
+++ b/api/user.go
@@ -925,7 +925,7 @@ func updateRoles(c *Context, w http.ResponseWriter, r *http.Request) {
}
new_roles := props["new_roles"]
- if model.IsValidRoles(new_roles) {
+ if !model.IsValidRoles(new_roles) {
c.SetInvalidParam("updateRoles", "new_roles")
return
}