diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-09-14 08:58:53 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-09-14 08:58:53 -0400 |
commit | c3742aef71801544172cf77a46d52835594096a4 (patch) | |
tree | 76b3aacf1ee6da724201ea5411bef068cce3b26a /api/user_test.go | |
parent | 75721b5cb5ea19c1d6754adcc82891fa888fcacf (diff) | |
parent | 714f47e015adf4a455d29cbddfb5f58f84d9973e (diff) | |
download | chat-c3742aef71801544172cf77a46d52835594096a4.tar.gz chat-c3742aef71801544172cf77a46d52835594096a4.tar.bz2 chat-c3742aef71801544172cf77a46d52835594096a4.zip |
Merge pull request #648 from mattermost/PLT-12
PLT-12: Work in progress for Admin Console UI
Diffstat (limited to 'api/user_test.go')
-rw-r--r-- | api/user_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/user_test.go b/api/user_test.go index b5435e3c0..fe5a4a27f 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -509,7 +509,7 @@ func TestUserUpdate(t *testing.T) { user.TeamId = "12345678901234567890123456" user.LastActivityAt = time2 user.LastPingAt = time2 - user.Roles = model.ROLE_ADMIN + user.Roles = model.ROLE_TEAM_ADMIN user.LastPasswordUpdate = 123 if result, err := Client.UpdateUser(user); err != nil { @@ -684,6 +684,7 @@ func TestUserUpdateRoles(t *testing.T) { data["user_id"] = user2.Id if result, err := Client.UpdateUserRoles(data); err != nil { + t.Log(data["new_roles"]) t.Fatal(err) } else { if result.Data.(*model.User).Roles != "admin" { |