bug fixed delete repo

tokarchuk/v1.17
Lunny Xiao 11 years ago
parent cd800d7837
commit af2129c254
  1. 2
      models/repo.go

@ -398,7 +398,7 @@ func DeleteRepository(userId, repoId int64, userName string) (err error) {
session.Rollback() session.Rollback()
return err return err
} }
if _, err := session.Delete(&Access{UserName: userName, RepoName: repo.Name}); err != nil { if _, err := session.Delete(&Access{RepoName: strings.ToLower(path.Join(userName, repo.Name))}); err != nil {
session.Rollback() session.Rollback()
return err return err
} }

Loading…
Cancel
Save