diff options
author | Chris <ccbrown112@gmail.com> | 2017-11-02 16:24:11 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-11-02 17:24:11 -0400 |
commit | 9d32cd42085bbb37460d815c6c1a00ad881c4895 (patch) | |
tree | eb6963263ecd79ea4e5166a117a6be5ff9706687 /api4/user.go | |
parent | fed5324ce505c3725472af23757cd6659bb7139c (diff) | |
download | chat-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.go | 2 |
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)) |