From 808ce8b78dc8930ff4e29389a3e4c5feee3ed4cd Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 22 2019 15:50:39 +0000 Subject: Do not link on the "Star" button if the user is not authenticated Otherwise, people who are not authenticated are able to click on the button. This will redirect the user to the login page, then back into the star project endpoint, but this endpoint only accepts POST requests while redirect can only be done via GET requests. So the user ends up with a page showing a 405 (method not allowed) error. By dropping the link for not-authenticated users, we solve this issue. Fixes https://pagure.io/pagure/issue/4372 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 39724f4..b0ab2ce 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -85,11 +85,10 @@ {%- if repo.url %}  |  {{ repo.url }}{% endif %} +