summaryrefslogtreecommitdiffstats
path: root/modules/repository/delete.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repository/delete.go')
-rw-r--r--modules/repository/delete.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repository/delete.go b/modules/repository/delete.go
index c7e05e6669..01674db4a1 100644
--- a/modules/repository/delete.go
+++ b/modules/repository/delete.go
@@ -16,7 +16,7 @@ func CanUserDelete(repo *repo_model.Repository, user *user_model.User) (bool, er
return true, nil
}
- if err := repo.GetOwner(db.DefaultContext); err != nil {
+ if err := repo.LoadOwner(db.DefaultContext); err != nil {
return false, err
}