mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix #1997
This commit is contained in:
		@@ -275,7 +275,7 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// Admin has super access.
 | 
			
		||||
		if ctx.User.IsAdmin {
 | 
			
		||||
		if ctx.IsSigned && ctx.User.IsAdmin {
 | 
			
		||||
			ctx.Repo.AccessMode = models.ACCESS_MODE_OWNER
 | 
			
		||||
		} else {
 | 
			
		||||
			mode, err := models.AccessLevel(ctx.User, repo)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user