teams: changed permission to permission type instead of int
This commit is contained in:
committed by
Leonard Gram
parent
c826f39a8b
commit
246e128048
@@ -114,12 +114,12 @@ func TestTeamCommandsAndQueries(t *testing.T) {
|
||||
So(err, ShouldBeNil)
|
||||
So(qBeforeUpdate.Result[0].Permission, ShouldEqual, 0)
|
||||
|
||||
invalidPermissionLevel := 1337
|
||||
invalidPermissionLevel := m.PERMISSION_EDIT
|
||||
err = UpdateTeamMember(&m.UpdateTeamMemberCommand{
|
||||
UserId: userID,
|
||||
OrgId: testOrgId,
|
||||
TeamId: team.Id,
|
||||
Permission: int64(invalidPermissionLevel),
|
||||
Permission: invalidPermissionLevel,
|
||||
})
|
||||
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
Reference in New Issue
Block a user