diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-22 22:39:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-22 22:39:46 -0500 |
| commit | b2dcbac8e0b45dc7261b3b486e7392d27e6a04b7 (patch) | |
| tree | e6ce1f140196c035d3532d8a86343261b949f07d /src/slskd/Core/API/Controllers/DebugController.cs | |
| parent | e6458e011c745eb0b0f6b0ce0474491381438178 (diff) | |
| parent | 6be4f40d3079089ec91d48b05400a1b92b8ca899 (diff) | |
| download | slskd-b2dcbac8e0b45dc7261b3b486e7392d27e6a04b7.tar.gz | |
Merge branch 'master' into fix/version-string-spacing
Diffstat (limited to 'src/slskd/Core/API/Controllers/DebugController.cs')
| -rw-r--r-- | src/slskd/Core/API/Controllers/DebugController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Core/API/Controllers/DebugController.cs b/src/slskd/Core/API/Controllers/DebugController.cs index b5f6cd33..7f4dcafc 100644 --- a/src/slskd/Core/API/Controllers/DebugController.cs +++ b/src/slskd/Core/API/Controllers/DebugController.cs @@ -46,6 +46,7 @@ namespace slskd.Core.API [ApiController] [Produces("application/json")] [Consumes("application/json")] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.AdministratorOnly)] public class DebugController : ControllerBase { public DebugController(ISoulseekClient soulseekClient) @@ -56,7 +57,7 @@ namespace slskd.Core.API private ISoulseekClient Client { get; } [HttpGet("transfers")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.AdministratorOnly)] [ProducesResponseType(typeof(Transfer), 200)] public IActionResult Transfers() { |
