summaryrefslogtreecommitdiffstats
path: root/models/org.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-28 13:51:15 +0800
committerUnknwon <u@gogs.io>2015-08-28 13:51:15 +0800
commitff35a37769cbf60cd1522eb05411adbf965c9950 (patch)
treec8f500294dd65813fd2d9becab1c076f92d424f3 /models/org.go
parent70e0153b939a2446bf1d8e459a1b965660463585 (diff)
downloadgitea-ff35a37769cbf60cd1522eb05411adbf965c9950.tar.gz
gitea-ff35a37769cbf60cd1522eb05411adbf965c9950.zip
#1458: Authorities were messed up when using mysql database
Diffstat (limited to 'models/org.go')
-rw-r--r--models/org.go2
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) {