mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix typo (#12013)
* Fix typo of MSSQL * Fix typo: validates * Fix typo * fix comment with space Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		@@ -717,7 +717,7 @@ func (org *User) getUserTeamIDs(e Engine, userID int64) ([]int64, error) {
 | 
				
			|||||||
		Find(&teamIDs)
 | 
							Find(&teamIDs)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// TeamsWithAccessToRepo returns all teamsthat have given access level to the repository.
 | 
					// TeamsWithAccessToRepo returns all teams that have given access level to the repository.
 | 
				
			||||||
func (org *User) TeamsWithAccessToRepo(repoID int64, mode AccessMode) ([]*Team, error) {
 | 
					func (org *User) TeamsWithAccessToRepo(repoID int64, mode AccessMode) ([]*Team, error) {
 | 
				
			||||||
	return GetTeamsWithAccessToRepo(org.ID, repoID, mode)
 | 
						return GetTeamsWithAccessToRepo(org.ID, repoID, mode)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -169,7 +169,7 @@ func (ctx *APIContext) RequireCSRF() {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// CheckForOTP validateds OTP
 | 
					// CheckForOTP validates OTP
 | 
				
			||||||
func (ctx *APIContext) CheckForOTP() {
 | 
					func (ctx *APIContext) CheckForOTP() {
 | 
				
			||||||
	otpHeader := ctx.Req.Header.Get("X-Gitea-OTP")
 | 
						otpHeader := ctx.Req.Header.Get("X-Gitea-OTP")
 | 
				
			||||||
	twofa, err := models.GetTwoFactorByUID(ctx.Context.User.ID)
 | 
						twofa, err := models.GetTwoFactorByUID(ctx.Context.User.ID)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user