mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-04-21 23:36:43 +02:00
routers/web/repo/view.go aktualisiert
This commit is contained in:
parent
3c827b8be7
commit
50c580d2df
1 changed files with 6 additions and 0 deletions
|
@ -1165,6 +1165,12 @@ 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