Skip to content

Commit f4d1f9a

Browse files
committed
Add missed unit code requirement
1 parent af3d87b commit f4d1f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/web.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ func registerRoutes(m *web.Router) {
14701470
})
14711471
}, reqRepoCodeReader)
14721472
},
1473-
optSignIn, context.RepoAssignment, context.RequireRepoReaderOr(unit.TypePullRequests, unit.TypeIssues, unit.TypeReleases),
1473+
optSignIn, context.RepoAssignment, context.RequireRepoReaderOr(unit.TypeCode, unit.TypePullRequests, unit.TypeIssues, unit.TypeReleases),
14741474
context.RepoRef(), repo.MustBeNotEmpty,
14751475
)
14761476
// end "/{username}/{reponame}/activity"

0 commit comments

Comments
 (0)