1
0
Fork 0
forked from forgejo/forgejo

#1458: Authorities were messed up when using mysql database

This commit is contained in:
Unknwon 2015-08-28 13:51:15 +08:00
parent 70e0153b93
commit ff35a37769
5 changed files with 30 additions and 45 deletions

View file

@ -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) {