Only delete secrets belonging to its owner (#24284)

This commit is contained in:
KN4CK3R authored and GitHub committed 2023-04-23 21:35:14 +08:00
1 parent 60e7963141
commit b3e849d1d6
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",
)
}