Allow any maintainer/editor to set up GitHub webhooks

This commit is contained in:
rubenwardy
2020-12-14 21:22:11 +00:00
parent c7aecd32be
commit 5cbdaae5b3
2 changed files with 7 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
{% block content %}
<p class="alert alert-info mb-4">
<a class="float-right btn btn-sm btn-info" href="{{ url_for('flatpage', path='help/release_webhooks') }}">{{ _("Learn more") }}</a>
{% if package.author == current_user and package.checkPerm(current_user, "APPROVE_RELEASE") and package.getIsOnGitHub() %}
{% if package.checkPerm(current_user, "APPROVE_RELEASE") and package.getIsOnGitHub() %}
<a class="float-right btn btn-sm btn-info mr-2" href="{{ url_for('github.setup_webhook', pid=package.id) }}">{{ _("Setup webhook") }}</a>
<i class="fas fa-info mr-2"></i>