diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index d2d51fe6ea20..8a490ac64532 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -284,7 +284,7 @@ - {{if .Repository.CanEnablePulls}} + {{if and (not .IsMirror) (.Repository.UnitEnabled $.UnitTypePullRequests)}}
{{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}} {{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}}