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

* Add websocket event for user role update

* Fix tests

* More test fixes
Этот коммит содержится в:
Joram Wilander
2017-10-31 12:00:21 -04:00
коммит произвёл George Goldberg
родитель 6886de04d4
Коммит 06ec648cf3
15 изменённых файлов: 37 добавлений и 29 удалений

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

@@ -483,7 +483,7 @@ func TestGetUser(t *testing.T) {
t.Fatal("shouldn't have accss")
}
th.App.UpdateUserRoles(ruser.Data.(*model.User).Id, model.ROLE_SYSTEM_ADMIN.Id)
th.App.UpdateUserRoles(ruser.Data.(*model.User).Id, model.ROLE_SYSTEM_ADMIN.Id, false)
Client.Login(user.Email, "passwd1")