mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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:
committed by
George Goldberg
parent
6886de04d4
commit
06ec648cf3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user