Skip to content

Commit 6ce81db

Browse files
committed
chore: check permission
Signed-off-by: appleboy <[email protected]>
1 parent a21234b commit 6ce81db

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
@@ -1066,7 +1066,7 @@ func Routes() *web.Route {
10661066
m.Post("/migrate", reqToken(), bind(api.MigrateRepoOptions{}), repo.Migrate)
10671067

10681068
m.Group("/{username}/{reponame}", func() {
1069-
m.Get("/compare/*", repo.CompareDiff)
1069+
m.Get("/compare/*", reqAnyRepoReader(), repo.CompareDiff)
10701070

10711071
m.Combo("").Get(reqAnyRepoReader(), repo.Get).
10721072
Delete(reqToken(), reqOwner(), repo.Delete).

0 commit comments

Comments
 (0)