diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-01-25 00:04:56 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-01-25 00:04:56 +0000 |
| commit | 493917d8b14fac50ca2ad8f6c8ffff0c0403a5e1 (patch) | |
| tree | 4d22f8e046a371d73ed1e6cfcf45706a89ceb36e /app/templates | |
| parent | e12aec4ccdef7752fb87bd857a48eb4587016573 (diff) | |
| download | cheatdb-493917d8b14fac50ca2ad8f6c8ffff0c0403a5e1.tar.xz | |
Restrict webhooks to trusted users
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/packages/view.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index e5ab1e4..9dce0d4 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -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 |
