From 20f0c5ae9384297600532e6b65f6e62dacb459ad Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 14 2016 09:59:02 +0000 Subject: Fix creating new PR from the page listing the pull-requests In this page we do two queries: - Give me all the branch of interest in the fork of the user - Give me all the branch of interest in the main repo (if the user is an admin) That second request was broken because the `repo_admin` variable was no longer used (instead if we use the one in flask.g). --- diff --git a/pagure/templates/requests.html b/pagure/templates/requests.html index 8898169..fb96fc0 100644 --- a/pagure/templates/requests.html +++ b/pagure/templates/requests.html @@ -243,7 +243,7 @@ $(function() { }); }); -{% if authenticated and repo_admin %} +{% if authenticated and g.repo_admin %} $(function() { $.ajax({ url: '{{ url_for("internal_ns.get_pull_request_ready_branch") }}' ,