diff options
author | Unknwon <u@gogs.io> | 2015-08-28 13:51:15 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-28 13:51:15 +0800 |
commit | ff35a37769cbf60cd1522eb05411adbf965c9950 (patch) | |
tree | c8f500294dd65813fd2d9becab1c076f92d424f3 /models/org.go | |
parent | 70e0153b939a2446bf1d8e459a1b965660463585 (diff) | |
download | gitea-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.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) { |