From 1e7985a87a72bea9a308cf1506dacc828c6e2e1c Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 13 Sep 2016 12:42:48 -0400 Subject: Modifying permissions system. (#3897) --- api/cli_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/cli_test.go') diff --git a/api/cli_test.go b/api/cli_test.go index 65afc81e9..c25394c17 100644 --- a/api/cli_test.go +++ b/api/cli_test.go @@ -118,7 +118,7 @@ func TestCliAssignRole(t *testing.T) { th := Setup().InitBasic() - cmd := exec.Command("bash", "-c", `go run ../mattermost.go -assign_role -email="`+th.BasicUser.Email+`" -role="system_admin"`) + cmd := exec.Command("bash", "-c", `go run ../mattermost.go -assign_role -email="`+th.BasicUser.Email+`" -role="system_user system_admin"`) output, err := cmd.CombinedOutput() if err != nil { t.Log(string(output)) @@ -129,7 +129,7 @@ func TestCliAssignRole(t *testing.T) { t.Fatal() } else { user := result.Data.(*model.User) - if user.Roles != "system_admin" { + if user.Roles != "system_user system_admin" { t.Fatal() } } -- cgit v1.2.3-1-g7c22