diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-22 22:50:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-22 22:50:12 -0500 |
| commit | 39f92b2cb9f1854d02391a2f77cffcd97ebf60df (patch) | |
| tree | e6ce1f140196c035d3532d8a86343261b949f07d /src/slskd/Core/API/Controllers/DebugController.cs | |
| parent | 4b84358f9ee5074873b4f0cc1030c97b10154e46 (diff) | |
| parent | b2dcbac8e0b45dc7261b3b486e7392d27e6a04b7 (diff) | |
| download | slskd-39f92b2cb9f1854d02391a2f77cffcd97ebf60df.tar.gz | |
Merge pull request #1896 from char1es31/fix/version-string-spacing
fix: missing space in version update message
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() { |
