diff --git a/rhodecode/templates/pullrequests/pullrequest_show.html b/rhodecode/templates/pullrequests/pullrequest_show.html --- a/rhodecode/templates/pullrequests/pullrequest_show.html +++ b/rhodecode/templates/pullrequests/pullrequest_show.html @@ -93,7 +93,7 @@
gravatar
${member.full_name} (${_('owner')})
- %if not c.pull_request.is_closed(): + %if not c.pull_request.is_closed() and (h.HasPermissionAny('hg.admin', 'repository.admin')() or c.pull_request.author.user_id == c.rhodecode_user.user_id): %endif @@ -103,6 +103,7 @@ %if not c.pull_request.is_closed():
+ %if h.HasPermissionAny('hg.admin', 'repository.admin')() or c.pull_request.author.user_id == c.rhodecode_user.user_id:
${h.text('user', class_='yui-ac-input')} ${_('Add reviewer to this pull request.')} @@ -111,6 +112,7 @@
${_('save')}
+ %endif
%endif