From 7252179367923dc8fd09ef27178cddd520d22b1e Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Jul 24 2018 02:03:37 +0000 Subject: Fix #3431: Text entry on diff of a file This commit diables the adding of comment totally if the user is not logged in and authenticated. Signed-off-by: Farhaan Bukhsh --- diff --git a/pagure/templates/repo_pull_request.html b/pagure/templates/repo_pull_request.html index 87f8abe..9f6f778 100644 --- a/pagure/templates/repo_pull_request.html +++ b/pagure/templates/repo_pull_request.html @@ -956,6 +956,8 @@ $(document).ready(function() { return window.confirm("Are you sure you want to reopen this requested pull?"); }); +{% if g.authenticated %} + $( ".code_table tr" ).hover( function() { $( this ).find( ".prc_img" ).show().width(13); @@ -1020,6 +1022,8 @@ $(document).ready(function() { $(obj).html(preview); }); +{% endif %} + {% if pull_request.status == 'Open' %} show_merge_status() {% endif %}