aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/settings
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-03-10 15:28:32 +0100
committerGitHub <noreply@github.com>2023-03-10 08:28:32 -0600
commit2173f14708ff3b35d7821fc9b6dcb5fcd06b8494 (patch)
tree5dcb735cc960095f9f8e114a1d896bb80df66ba9 /templates/repo/settings
parentdad057b6393548ad389ead07c2cce5b3ac2811e0 (diff)
downloadgitea-2173f14708ff3b35d7821fc9b6dcb5fcd06b8494.tar.gz
gitea-2173f14708ff3b35d7821fc9b6dcb5fcd06b8494.zip
Add user webhooks (#21563)
Currently we can add webhooks for organizations but not for users. This PR adds the latter. You can access it from the current users settings. ![grafik](https://user-images.githubusercontent.com/1666336/197391408-15dfdc23-b476-4d0c-82f7-9bc9b065988f.png)
Diffstat (limited to 'templates/repo/settings')
-rw-r--r--templates/repo/settings/webhook/history.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/webhook/history.tmpl b/templates/repo/settings/webhook/history.tmpl
index bf7fe05de2..f76cdb147d 100644
--- a/templates/repo/settings/webhook/history.tmpl
+++ b/templates/repo/settings/webhook/history.tmpl
@@ -40,7 +40,7 @@
<span class="ui label">N/A</span>
{{end}}
</a>
- {{if or $.Permission.IsAdmin $.IsOrganizationOwner $.PageIsAdmin}}
+ {{if or $.Permission.IsAdmin $.IsOrganizationOwner $.PageIsAdmin $.PageIsUserSettings}}
<div class="right menu">
<form class="item" action="{{$.Link}}/replay/{{.UUID}}" method="post">
{{$.CsrfTokenHtml}}