summaryrefslogtreecommitdiffstats
path: root/api4/user.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-11-02 16:24:11 -0500
committerJoram Wilander <jwawilander@gmail.com>2017-11-02 17:24:11 -0400
commit9d32cd42085bbb37460d815c6c1a00ad881c4895 (patch)
treeeb6963263ecd79ea4e5166a117a6be5ff9706687 /api4/user.go
parentfed5324ce505c3725472af23757cd6659bb7139c (diff)
downloadchat-9d32cd42085bbb37460d815c6c1a00ad881c4895.tar.gz
chat-9d32cd42085bbb37460d815c6c1a00ad881c4895.tar.bz2
chat-9d32cd42085bbb37460d815c6c1a00ad881c4895.zip
prevent deactivation of sso users (#7759)
Diffstat (limited to 'api4/user.go')
-rw-r--r--api4/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/user.go b/api4/user.go
index 7343ce326..16b7f79a9 100644
--- a/api4/user.go
+++ b/api4/user.go
@@ -683,7 +683,7 @@ func updateUserActive(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if ruser, err := c.App.UpdateActiveNoLdap(c.Params.UserId, active); err != nil {
+ if ruser, err := c.App.UpdateNonSSOUserActive(c.Params.UserId, active); err != nil {
c.Err = err
} else {
c.LogAuditWithUserId(ruser.Id, fmt.Sprintf("active=%v", active))