diff --git a/rhodecode/public/js/src/rhodecode/pullrequests.js b/rhodecode/public/js/src/rhodecode/pullrequests.js --- a/rhodecode/public/js/src/rhodecode/pullrequests.js +++ b/rhodecode/public/js/src/rhodecode/pullrequests.js @@ -311,7 +311,8 @@ ReviewersController = function () { 'allowed_to_update': true, 'review_status': 'not_reviewed', 'review_status_label': _gettext('Not Reviewed'), - 'reasons': reasons + 'reasons': reasons, + 'create': true }); } } diff --git a/rhodecode/templates/ejs_templates/templates.html b/rhodecode/templates/ejs_templates/templates.html --- a/rhodecode/templates/ejs_templates/templates.html +++ b/rhodecode/templates/ejs_templates/templates.html @@ -34,13 +34,17 @@ var CG = new ColorGenerator();
  • <% + if (create) { + var edit_visibility = 'visible'; + } else { + var edit_visibility = 'hidden'; + } if (member.user_group && member.user_group.vote_rule) { var groupStyle = 'border-left: 1px solid '+CG.asRGB(CG.getColor(member.user_group.vote_rule)); } else { var groupStyle = 'border-left: 1px solid white'; } - %>
    @@ -99,12 +103,12 @@ var CG = new ColorGenerator(); <% if (mandatory) { %> -