Skip to content

Commit 6abedeb

Browse files
committed
add comment
1 parent 541a190 commit 6abedeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/web.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ func registerRoutes(m *web.Router) {
827827
reqRepoActionsReader := context.RequireUnitReader(unit.TypeActions)
828828
reqRepoActionsWriter := context.RequireUnitWriter(unit.TypeActions)
829829

830+
// the legacy names "reqRepoXxx" should be renamed to the correct name "reqUnitXxx", these permissions are for units, not repos
830831
reqUnitsWithMarkdown := context.RequireUnitReader(unit.TypeCode, unit.TypeIssues, unit.TypePullRequests, unit.TypeReleases, unit.TypeWiki)
831832
reqUnitCodeReader := context.RequireUnitReader(unit.TypeCode)
832833
reqUnitIssuesReader := context.RequireUnitReader(unit.TypeIssues)

0 commit comments

Comments
 (0)