1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Only delete secrets belonging to its owner (#24284)

This commit is contained in:
KN4CK3R
2023-04-23 15:35:14 +02:00
committed by GitHub
parent 60e7963141
commit b3e849d1d6
4 changed files with 8 additions and 2 deletions

View File

@@ -43,6 +43,8 @@ func SecretsPost(ctx *context.Context) {
func SecretsDelete(ctx *context.Context) {
shared.PerformSecretsDelete(
ctx,
ctx.ContextUser.ID,
0,
ctx.Org.OrgLink+"/settings/secrets",
)
}