summaryrefslogtreecommitdiffstats
path: root/api/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 /api/user.go
parentfed5324ce505c3725472af23757cd6659bb7139c (diff)
downloadchat-9d32cd42085bbb37460d815c6c1a00ad881c4895.tar.gz
chat-9d32cd42085bbb37460d815c6c1a00ad881c4895.tar.bz2
chat-9d32cd42085bbb37460d815c6c1a00ad881c4895.zip
prevent deactivation of sso users (#7759)
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index 4a3b52417..9712d2ef1 100644
--- a/api/user.go
+++ b/api/user.go
@@ -729,7 +729,7 @@ func updateActive(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if ruser, err := c.App.UpdateActiveNoLdap(userId, active); err != nil {
+ if ruser, err := c.App.UpdateNonSSOUserActive(userId, active); err != nil {
c.Err = err
} else {
c.LogAuditWithUserId(ruser.Id, fmt.Sprintf("active=%v", active))