diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-03-14 20:51:46 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-15 08:51:46 +0800 |
commit | ec0ae5d50c59315a3c597b1cf24d4c5508c718e5 (patch) | |
tree | 6f4d6f826dd9866f9b39b66522ec629555700de2 /models/org_team_test.go | |
parent | 7d8f9d1c46e38681f2a4033a7da811ab7562d953 (diff) | |
download | gitea-ec0ae5d50c59315a3c597b1cf24d4c5508c718e5.tar.gz gitea-ec0ae5d50c59315a3c597b1cf24d4c5508c718e5.zip |
Refactor and fix incorrect comment (#1247)
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) } |