Browse Source

bug fixed delete repo

for-closed-social
Lunny Xiao 10 years ago
parent
commit
af2129c254
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/repo.go

+ 1
- 1
models/repo.go View File

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