mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 17:30:36 +00:00
Mirror fix
This commit is contained in:
parent
5c3054c3b7
commit
0d6aafdef5
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ package middleware
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"strings"
|
||||
|
||||
"github.com/codegangsta/martini"
|
||||
|
||||
|
@ -23,7 +24,7 @@ func RepoAssignment(redirect bool) martini.Handler {
|
|||
)
|
||||
|
||||
// get repository owner
|
||||
ctx.Repo.IsOwner = ctx.IsSigned && ctx.User.LowerName == params["username"]
|
||||
ctx.Repo.IsOwner = ctx.IsSigned && ctx.User.LowerName == strings.ToLower(params["username"])
|
||||
|
||||
if !ctx.Repo.IsOwner {
|
||||
user, err = models.GetUserByName(params["username"])
|
||||
|
|
Loading…
Reference in a new issue