mirror of https://github.com/go-gitea/gitea.git
Using strings.HasPrefix(...) will misjudgement
`strings.HasPrefix(access.RepoName, uname)` can't handle the situation which like following in access table. user_name | repo_name ----------+------------- toby | toby/blog toby | toby/test toby | tobyzxj/blog toby | tobyzxj/testpull/197/head
parent
a3e1383cac
commit
a13a6b14ec
Loading…
Reference in New Issue