diff options
author | slene <vslene@gmail.com> | 2014-03-16 00:03:23 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-16 00:03:23 +0800 |
commit | 7ca830677525e6fc9127660fde32c46bcf00ab59 (patch) | |
tree | 3e4234b6f59a64783c173ff43dec239a263f97f7 /web.go | |
parent | f047df6e2b69ecb41c3fe4bef746145916aa4063 (diff) | |
download | gitea-7ca830677525e6fc9127660fde32c46bcf00ab59.tar.gz gitea-7ca830677525e6fc9127660fde32c46bcf00ab59.zip |
modify RepoAssignment
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -68,12 +68,12 @@ func runWeb(*cli.Context) { m.Any("/repo/delete", middleware.SignInRequire(true), binding.Bind(auth.DeleteRepoForm{}), repo.Delete) m.Any("/repo/list", middleware.SignInRequire(false), repo.List) - m.Get("/:username/:reponame/settings", middleware.SignInRequire(false), auth.RepoAssignment(true), repo.Setting) + m.Get("/:username/:reponame/settings", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Setting) m.Get("/:username/:reponame/tree/:branchname/**", - middleware.SignInRequire(false), auth.RepoAssignment(true), repo.Single) + middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single) m.Get("/:username/:reponame/tree/:branchname", - middleware.SignInRequire(false), auth.RepoAssignment(true), repo.Single) - m.Get("/:username/:reponame", middleware.SignInRequire(false), auth.RepoAssignment(true), repo.Single) + middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single) + m.Get("/:username/:reponame", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single) //m.Get("/:username/:reponame", repo.Repo) |