gogits/gogs — pull request #243 by tobyzxj (2014-06-11 08:56:43+00:00)
Title: Using strings.HasPrefix(...) will cause a 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/test