Modifying permissions system. (#3897)

This commit is contained in:
Christopher Speller
2016-09-13 12:42:48 -04:00
committed by Joram Wilander
parent 05af5d14b8
commit 1e7985a87a
45 changed files with 1102 additions and 605 deletions

View File

@@ -342,7 +342,7 @@ func TestUserStoreGetSystemAdminProfiles(t *testing.T) {
u1 := &model.User{}
u1.Email = model.NewId()
u1.Roles = model.ROLE_SYSTEM_ADMIN
u1.Roles = model.ROLE_SYSTEM_USER.Id + " " + model.ROLE_SYSTEM_ADMIN.Id
Must(store.User().Save(u1))
Must(store.Team().SaveMember(&model.TeamMember{TeamId: teamId, UserId: u1.Id}))