PLT-7978 Add websocket event for user role update (#7745)

* Add websocket event for user role update

* Fix tests

* More test fixes
This commit is contained in:
Joram Wilander
2017-10-31 12:00:21 -04:00
committed by George Goldberg
parent 6886de04d4
commit 06ec648cf3
15 changed files with 37 additions and 29 deletions

View File

@@ -699,7 +699,7 @@ func updateRoles(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if _, err := c.App.UpdateUserRoles(userId, newRoles); err != nil {
if _, err := c.App.UpdateUserRoles(userId, newRoles, true); err != nil {
return
} else {
c.LogAuditWithUserId(userId, "roles="+newRoles)