]> source.dussan.org Git - gitea.git/commit
Only view milestones from current repo (#18414)
authorzeripath <art27@cantab.net>
Wed, 26 Jan 2022 20:01:35 +0000 (20:01 +0000)
committerGitHub <noreply@github.com>
Wed, 26 Jan 2022 20:01:35 +0000 (20:01 +0000)
commit9a75c2741d2806f5bb12d21b5a9d7387b2d44073
treedddcce80b8095fa24edf683a6e61a58b0fb56835
parent3bb028cc46401a8a54ecab7e7c035dbb24937b6c
Only view milestones from current repo (#18414)

The endpoint /{username}/{reponame}/milestone/{id} is not currently restricted to
the repo. This PR restricts the milestones to those within the repo.

Signed-off-by: Andrew Thornton <art27@cantab.net>
go.mod
models/issue_milestone.go
routers/web/repo/issue.go
routers/web/repo/milestone.go