fix(routes): use optSignIn for licenses page #269
+1
-1
@@ -1504,7 +1504,7 @@ func registerWebRoutes(m *web.Router, webAuth *AuthMiddleware) {
|
||||
// "/{username}/{reponame}": licenses page
|
||||
m.Group("/{username}/{reponame}", func() {
|
||||
m.Get("/licenses", repo.Licenses)
|
||||
}, reqSignIn, context.RepoAssignment, reqRepoReleaseReader)
|
||||
}, optSignIn, context.RepoAssignment)
|
||||
// end "/{username}/{reponame}": licenses
|
||||
|
||||
m.Group("/{username}/{reponame}", func() { // to maintain compatibility with old attachments
|
||||
|
||||
Reference in New Issue
Block a user