aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API/Controllers/DebugController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-22 22:50:12 -0500
committerGitHub <noreply@github.com>2026-10-22 22:50:12 -0500
commit39f92b2cb9f1854d02391a2f77cffcd97ebf60df (patch)
treee6ce1f140196c035d3532d8a86343261b949f07d /src/slskd/Core/API/Controllers/DebugController.cs
parent4b84358f9ee5074873b4f0cc1030c97b10154e46 (diff)
parentb2dcbac8e0b45dc7261b3b486e7392d27e6a04b7 (diff)
downloadslskd-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.cs3
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()
{