diff options
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org.go b/models/org.go index b8d1945672..dfd720fade 100644 --- a/models/org.go +++ b/models/org.go @@ -483,7 +483,7 @@ func (t *Team) hasRepository(e Engine, repoID int64) bool { // HasRepository returns true if given repository belong to team. func (t *Team) HasRepository(repoID int64) bool { - return HasTeamRepo(t.OrgID, t.ID, repoID) + return t.hasRepository(x, repoID) } func (t *Team) addRepository(e Engine, repo *Repository) (err error) { |