Skip to content

Commit dd7edfb

Browse files
committed
refactor: add missing middleware
1 parent fbe7e8e commit dd7edfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ func Routes() *web.Router {
16031603
Patch(reqToken(), reqRepoWriter(unit.TypeIssues, unit.TypePullRequests), bind(api.EditMilestoneOption{}), repo.EditMilestone).
16041604
Delete(reqToken(), reqRepoWriter(unit.TypeIssues, unit.TypePullRequests), repo.DeleteMilestone)
16051605
})
1606-
}, repoAssignment())
1606+
}, repoAssignment(), checkTokenPublicOnly())
16071607
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryIssue))
16081608

16091609
// NOTE: these are Gitea package management API - see packages.CommonRoutes and packages.DockerContainerRoutes for endpoints that implement package manager APIs

0 commit comments

Comments
 (0)