Restrict webhooks to trusted users

This commit is contained in:
rubenwardy
2020-01-25 00:04:56 +00:00
parent e12aec4ccd
commit 493917d8b1
2 changed files with 13 additions and 5 deletions

View File

@@ -364,7 +364,7 @@
</ul>
</div>
{% if package.getIsOnGitHub() %}
{% if package.author == current_user and package.checkPerm(current_user, "APPROVE_RELEASE") and package.getIsOnGitHub() %}
<p class="small text-centered">
<a href="{{ url_for('github.setup_webhook', pid=package.id) }}">
Set up a webhook