@@ -863,9 +863,6 @@ func registerRoutes(m *web.Route) {
863863 }, reqUnitAccess (unit .TypeCode , perm .AccessModeRead , false ))
864864 }, ignSignIn , context_service .UserAssignmentWeb (), context .OrgAssignment ()) // for "/{username}/-" (packages, projects, code)
865865
866- // ***** Release Attachment Download without Signin
867- m .Get ("/{username}/{reponame}/releases/download/{vTag}/{fileName}" , ignSignIn , context .RepoAssignment , repo .MustBeNotEmpty , repo .RedirectDownload )
868-
869866 m .Group ("/{username}/{reponame}" , func () {
870867 m .Group ("/settings" , func () {
871868 m .Group ("" , func () {
@@ -1118,8 +1115,9 @@ func registerRoutes(m *web.Route) {
11181115 m .Get (".rss" , feedEnabled , repo .ReleasesFeedRSS )
11191116 m .Get (".atom" , feedEnabled , repo .ReleasesFeedAtom )
11201117 }, ctxDataSet ("EnableFeed" , setting .Other .EnableFeed ),
1121- repo .MustBeNotEmpty , reqRepoReleaseReader , context .RepoRefByType (context .RepoRefTag , true ))
1122- m .Get ("/releases/attachments/{uuid}" , repo .MustBeNotEmpty , reqRepoReleaseReader , repo .GetAttachment )
1118+ repo .MustBeNotEmpty , context .RepoRefByType (context .RepoRefTag , true ))
1119+ m .Get ("/releases/attachments/{uuid}" , repo .MustBeNotEmpty , repo .GetAttachment )
1120+ m .Get ("/releases/download/{vTag}/{fileName}" , repo .MustBeNotEmpty , repo .RedirectDownload )
11231121 m .Group ("/releases" , func () {
11241122 m .Get ("/new" , repo .NewRelease )
11251123 m .Post ("/new" , web .Bind (forms.NewReleaseForm {}), repo .NewReleasePost )
0 commit comments