From 6c75662b824491a20a757a5eec59556a866374b5 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Fri, 6 May 2016 11:28:22 -0700 Subject: PLT-2697 Fixing team admins (#2900) * PLT-2697 Fixing team admins * Fixing eslint error * Fixing loc issues * Fixing func * Fixing func --- api/team_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/team_test.go') diff --git a/api/team_test.go b/api/team_test.go index a58260fd2..30952b4d8 100644 --- a/api/team_test.go +++ b/api/team_test.go @@ -252,7 +252,7 @@ func TestGetAllTeams(t *testing.T) { c := &Context{} c.RequestId = model.NewId() c.IpAddress = "cmd_line" - UpdateRoles(c, user, model.ROLE_SYSTEM_ADMIN) + UpdateUserRoles(c, user, model.ROLE_SYSTEM_ADMIN) Client.Login(user.Email, "pwd") Client.SetTeamId(team.Id) @@ -301,7 +301,7 @@ func TestGetAllTeamListings(t *testing.T) { c := &Context{} c.RequestId = model.NewId() c.IpAddress = "cmd_line" - UpdateRoles(c, user, model.ROLE_SYSTEM_ADMIN) + UpdateUserRoles(c, user, model.ROLE_SYSTEM_ADMIN) Client.Login(user.Email, "pwd") Client.SetTeamId(team.Id) -- cgit v1.2.3-1-g7c22