aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/API
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-28 19:13:25 -0500
committerGitHub <noreply@github.com>2026-10-28 19:13:25 -0500
commit2e127575c5231ea94a2f327084c5da29b8a9e895 (patch)
treec155815345acac601326890d66d0ea8faf29fce3 /src/slskd/Shares/API
parent47c0c9fccbe976c1d1f8f71c6b0bfd45bceda1a4 (diff)
parent2b827344d11e7490b323defa898264cadbdb6089 (diff)
downloadslskd-2e127575c5231ea94a2f327084c5da29b8a9e895.tar.gz
Merge branch 'master' into bugs
Diffstat (limited to 'src/slskd/Shares/API')
-rw-r--r--src/slskd/Shares/API/Controllers/SharesController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Shares/API/Controllers/SharesController.cs b/src/slskd/Shares/API/Controllers/SharesController.cs
index 1ce1f88e..4e328717 100644
--- a/src/slskd/Shares/API/Controllers/SharesController.cs
+++ b/src/slskd/Shares/API/Controllers/SharesController.cs
@@ -148,7 +148,7 @@ namespace slskd.Shares.API
/// <response code="409">A share scan is already in progress.</response>
[HttpPut]
[Route("")]
- [Authorize(Policy = AuthPolicy.Any)]
+ [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)]
[ProducesResponseType(204)]
[ProducesResponseType(409)]
public IActionResult RescanSharesAsync()
@@ -171,7 +171,7 @@ namespace slskd.Shares.API
/// <response code="409">A share scan was not in progress.</response>
[HttpDelete]
[Route("")]
- [Authorize(Policy = AuthPolicy.Any)]
+ [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)]
[ProducesResponseType(204)]
[ProducesResponseType(404)]
public IActionResult CancelShareScan()