@@ -978,9 +978,6 @@ func registerRoutes(m *web.Route) {
978978 }, reqUnitAccess (unit .TypeCode , perm .AccessModeRead , false ))
979979 }, ignSignIn , context_service .UserAssignmentWeb (), context .OrgAssignment ()) // for "/{username}/-" (packages, projects, code)
980980
981- // ***** Release Attachment Download without Signin
982- m .Get ("/{username}/{reponame}/releases/download/{vTag}/{fileName}" , ignSignIn , context .RepoAssignment , repo .MustBeNotEmpty , repo .RedirectDownload )
983-
984981 m .Group ("/{username}/{reponame}" , func () {
985982 m .Group ("/settings" , func () {
986983 m .Group ("" , func () {
@@ -1240,8 +1237,9 @@ func registerRoutes(m *web.Route) {
12401237 m .Get (".rss" , feedEnabled , repo .ReleasesFeedRSS )
12411238 m .Get (".atom" , feedEnabled , repo .ReleasesFeedAtom )
12421239 }, ctxDataSet ("EnableFeed" , setting .Other .EnableFeed ),
1243- repo .MustBeNotEmpty , reqRepoReleaseReader , context .RepoRefByType (context .RepoRefTag , true ))
1244- m .Get ("/releases/attachments/{uuid}" , repo .MustBeNotEmpty , reqRepoReleaseReader , repo .GetAttachment )
1240+ repo .MustBeNotEmpty , context .RepoRefByType (context .RepoRefTag , true ))
1241+ m .Get ("/releases/attachments/{uuid}" , repo .MustBeNotEmpty , repo .GetAttachment )
1242+ m .Get ("/releases/download/{vTag}/{fileName}" , repo .MustBeNotEmpty , repo .RedirectDownload )
12451243 m .Group ("/releases" , func () {
12461244 m .Get ("/new" , repo .NewRelease )
12471245 m .Post ("/new" , web .Bind (forms.NewReleaseForm {}), repo .NewReleasePost )
0 commit comments