fix(api): missing admin permission on global settings endpoint

This commit is contained in:
Gauthier Roebroeck 2025-02-20 12:03:08 +08:00
parent 6b27836437
commit 1fe7a001e5

View file

@ -130,6 +130,7 @@ class ClientSettingsController(
@DeleteMapping("global") @DeleteMapping("global")
@ResponseStatus(HttpStatus.NO_CONTENT) @ResponseStatus(HttpStatus.NO_CONTENT)
@PreAuthorize("hasRole('ADMIN')")
@Operation(summary = "Delete global settings", description = "Setting key should be a valid lowercase namespace string like 'application.domain.key'") @Operation(summary = "Delete global settings", description = "Setting key should be a valid lowercase namespace string like 'application.domain.key'")
@OASRequestBody( @OASRequestBody(
content = [ content = [