]> source.dussan.org Git - gitea.git/commit
Only view milestones from current repo (#18414) (#18418)
authorzeripath <art27@cantab.net>
Wed, 26 Jan 2022 22:09:35 +0000 (22:09 +0000)
committerGitHub <noreply@github.com>
Wed, 26 Jan 2022 22:09:35 +0000 (22:09 +0000)
commit9d9ad1b59fe062e4e87248a7333dc6414260815c
tree34de5f72e166ec11f353fb550abf85b49eb7d992
parentdf57524c49d45efa258d3533ecb1582387cde312
Only view milestones from current repo (#18414) (#18418)

Backport #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>
models/issue_milestone.go
routers/web/repo/issue.go
routers/web/repo/milestone.go