mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	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">
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user