aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/setting
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2024-08-11 22:48:20 +0800
committerGitHub <noreply@github.com>2024-08-11 14:48:20 +0000
commit0470646d46f90c20f40fde718be6ef8d8c84ee2c (patch)
tree6efe8af611b1c639b0235e4a46c4976ed5333e9f /routers/web/repo/setting
parente45a4c98292bf7c53700ff2f6f8e4dc7ba2e3e68 (diff)
downloadgitea-0470646d46f90c20f40fde718be6ef8d8c84ee2c.tar.gz
gitea-0470646d46f90c20f40fde718be6ef8d8c84ee2c.zip
Show lock owner instead of repo owner on LFS setting page (#31788)
Fix #31784. Before: <img width="1648" alt="image" src="https://github.com/user-attachments/assets/03f32545-4a85-42ed-bafc-2b193a5d8023"> After: <img width="1653" alt="image" src="https://github.com/user-attachments/assets/e5bcaf93-49cb-421f-aac1-5122bc488b02">
Diffstat (limited to 'routers/web/repo/setting')
-rw-r--r--routers/web/repo/setting/lfs.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/web/repo/setting/lfs.go b/routers/web/repo/setting/lfs.go
index 3b96f93ff2..fad6359668 100644
--- a/routers/web/repo/setting/lfs.go
+++ b/routers/web/repo/setting/lfs.go
@@ -95,6 +95,11 @@ func LFSLocks(ctx *context.Context) {
ctx.ServerError("LFSLocks", err)
return
}
+ if err := lfsLocks.LoadAttributes(ctx); err != nil {
+ ctx.ServerError("LFSLocks", err)
+ return
+ }
+
ctx.Data["LFSLocks"] = lfsLocks
if len(lfsLocks) == 0 {