@@ -26,7 +26,6 @@ import (
2626 "code.gitea.io/gitea/modules/util"
2727 "code.gitea.io/gitea/modules/web"
2828 "code.gitea.io/gitea/routers/web/feed"
29- "code.gitea.io/gitea/routers/web/repo/shared"
3029 shared_user "code.gitea.io/gitea/routers/web/shared/user"
3130 "code.gitea.io/gitea/services/context"
3231 "code.gitea.io/gitea/services/context/upload"
@@ -157,13 +156,6 @@ func Releases(ctx *context.Context) {
157156 ctx .Data ["CanCreateBranch" ] = false
158157 ctx .Data ["HideBranchesInDropdown" ] = true
159158
160- // repo/release_tag_header.tmpl will render sub menu depending on the different permission
161- if ! ctx .Repo .CanRead (unit .TypeReleases ) && ctx .Repo .CanRead (unit .TypeCode ) {
162- if ! shared .PrepareForRepoSubMenu (ctx ) {
163- return
164- }
165- }
166-
167159 listOptions := db.ListOptions {
168160 Page : ctx .FormInt ("page" ),
169161 PageSize : ctx .FormInt ("limit" ),
@@ -215,13 +207,6 @@ func TagsList(ctx *context.Context) {
215207 ctx .Data ["HideBranchesInDropdown" ] = true
216208 ctx .Data ["CanCreateRelease" ] = ctx .Repo .CanWrite (unit .TypeReleases ) && ! ctx .Repo .Repository .IsArchived
217209
218- // repo/release_tag_header.tmpl will render sub menu depending on the different permission
219- if ! ctx .Repo .CanRead (unit .TypeReleases ) && ctx .Repo .CanRead (unit .TypeCode ) {
220- if ! shared .PrepareForRepoSubMenu (ctx ) {
221- return
222- }
223- }
224-
225210 namePattern := ctx .FormTrim ("q" )
226211
227212 listOptions := db.ListOptions {
0 commit comments