prevent deactivation of sso users (#7759)

Этот коммит содержится в:
Chris
2017-11-02 16:24:11 -05:00
коммит произвёл Joram Wilander
родитель fed5324ce5
Коммит 9d32cd4208
6 изменённых файлов: 29 добавлений и 9 удалений

Просмотреть файл

@@ -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))