diff options
Diffstat (limited to 'models/org_team_test.go')
-rw-r--r-- | models/org_team_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org_team_test.go b/models/org_team_test.go index db0a814684..506de6e6bd 100644 --- a/models/org_team_test.go +++ b/models/org_team_test.go @@ -243,7 +243,7 @@ func TestDeleteTeam(t *testing.T) { // check that team members don't have "leftover" access to repos user := AssertExistsAndLoadBean(t, &User{ID: 4}).(*User) repo := AssertExistsAndLoadBean(t, &Repository{ID: 3}).(*Repository) - accessMode, err := AccessLevel(user, repo) + accessMode, err := AccessLevel(user.ID, repo) assert.NoError(t, err) assert.True(t, accessMode < AccessModeWrite) } |