Browse Source

Fix typo (#12013)

* Fix typo of MSSQL

* Fix typo: validates

* Fix typo

* fix comment with space

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
for-closed-social
successgo 4 years ago
committed by GitHub
parent
commit
4dee08a6b4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      models/org.go
  2. +1
    -1
      modules/context/api.go

+ 1
- 1
models/org.go View File

@ -717,7 +717,7 @@ func (org *User) getUserTeamIDs(e Engine, userID int64) ([]int64, error) {
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) {
return GetTeamsWithAccessToRepo(org.ID, repoID, mode)
}

+ 1
- 1
modules/context/api.go View File

@ -169,7 +169,7 @@ func (ctx *APIContext) RequireCSRF() {
}
}
// CheckForOTP validateds OTP
// CheckForOTP validates OTP
func (ctx *APIContext) CheckForOTP() {
otpHeader := ctx.Req.Header.Get("X-Gitea-OTP")
twofa, err := models.GetTwoFactorByUID(ctx.Context.User.ID)

Loading…
Cancel
Save