We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c692c89 commit 092b07dCopy full SHA for 092b07d
routers/api/packages/api.go
@@ -28,11 +28,6 @@ import (
28
29
func reqPackageAccess(accessMode perm.AccessMode) func(ctx *context.Context) {
30
return func(ctx *context.Context) {
31
- if !setting.Packages.Enabled {
32
- ctx.Error(http.StatusNotImplemented)
33
- return
34
- }
35
-
36
if ctx.Package.AccessMode < accessMode && !ctx.IsUserSiteAdmin() {
37
ctx.Resp.Header().Set("WWW-Authenticate", `Basic realm="Gitea Package API"`)
38
ctx.Error(http.StatusUnauthorized, "reqPackageAccess", "user should have specific permission or be a site admin")
0 commit comments