@@ -863,9 +863,6 @@ func registerRoutes(m *web.Route) {
863
863
}, reqUnitAccess (unit .TypeCode , perm .AccessModeRead , false ))
864
864
}, ignSignIn , context_service .UserAssignmentWeb (), context .OrgAssignment ()) // for "/{username}/-" (packages, projects, code)
865
865
866
- // ***** Release Attachment Download without Signin
867
- m .Get ("/{username}/{reponame}/releases/download/{vTag}/{fileName}" , ignSignIn , context .RepoAssignment , repo .MustBeNotEmpty , repo .RedirectDownload )
868
-
869
866
m .Group ("/{username}/{reponame}" , func () {
870
867
m .Group ("/settings" , func () {
871
868
m .Group ("" , func () {
@@ -1118,8 +1115,9 @@ func registerRoutes(m *web.Route) {
1118
1115
m .Get (".rss" , feedEnabled , repo .ReleasesFeedRSS )
1119
1116
m .Get (".atom" , feedEnabled , repo .ReleasesFeedAtom )
1120
1117
}, 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 )
1123
1121
m .Group ("/releases" , func () {
1124
1122
m .Get ("/new" , repo .NewRelease )
1125
1123
m .Post ("/new" , web .Bind (forms.NewReleaseForm {}), repo .NewReleasePost )
0 commit comments