From 5a4c991e5f30ebf0cce611b4d7c7826ca013e646 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 02 2020 08:44:57 +0000 Subject: Allow people with a fork to have a working drop-down for opening new PRs Basically, the drop-down for opening new PR from the main page of a main project was conditioned on having commit right on that main project. However, if you have a fork and no access to the main project, the drop-down was not returning. Now, we're checking if you have access to the main project or if you have a fork and in either case the JS ensuring the drop-down will populate fine. Fixes https://pagure.io/fedora-infrastructure/issue/9497 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html index 9d96f92..429a6f5 100644 --- a/pagure/templates/repo_master.html +++ b/pagure/templates/repo_master.html @@ -321,7 +321,7 @@ $(".select-on-focus").on("focus", function() { {% if g.authenticated and not g.repo_obj.is_empty %} -{% if g.repo_committer %} +{% if g.repo_committer or g.repo_forked %} var _cnt = 0; function process_task_results(_data, callback) {