Only delete secrets belonging to its owner (#24284) (#24286)

Backport #24284 by @KN4CK3R

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
GiteabotandKN4CK3R authored and GitHub committed 2023-04-23 16:36:20 +02:00
1 parent 077160b838
commit 7297cceda7
4 files changed
+8 -2

No files matched your search

+2
View File
@@ -40,6 +40,8 @@ func SecretsPost(ctx *context.Context) {
func SecretsDelete(ctx *context.Context) {
shared.PerformSecretsDelete(
ctx,
ctx.Doer.ID,
0,
setting.AppSubURL+"/user/settings/secrets",
)
}