mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-04-21 07:16:41 +02:00
Dateien nach „routers/web/repo“ hochladen
This commit is contained in:
parent
9a14362374
commit
6e5413510a
1 changed files with 1 additions and 2 deletions
|
@ -1165,12 +1165,11 @@ PostRecentBranchCheck:
|
|||
}
|
||||
|
||||
lfsLock, err := git_model.GetTreePathLock(ctx, ctx.Repo.Repository.ID, ctx.Repo.TreePath)
|
||||
|
||||
if err != nil {
|
||||
ctx.ServerError("git_model.GetTreePathLock", err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
if ctx.Repo.CanEnableEditor(ctx, ctx.Doer) {
|
||||
if lfsLock != nil && lfsLock.OwnerID != ctx.Doer.ID {
|
||||
ctx.Data["CanDeleteFile"] = false
|
||||
|
|
Loading…
Add table
Reference in a new issue