mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Add authorization on WalletRescan
This commit is contained in:
@@ -230,6 +230,7 @@ namespace BTCPayServer.Controllers
|
|||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[Route("{walletId}/rescan")]
|
[Route("{walletId}/rescan")]
|
||||||
|
[Authorize(Policy = Policies.CanModifyServerSettings.Key)]
|
||||||
public async Task<IActionResult> WalletRescan(
|
public async Task<IActionResult> WalletRescan(
|
||||||
[ModelBinder(typeof(WalletIdModelBinder))]
|
[ModelBinder(typeof(WalletIdModelBinder))]
|
||||||
WalletId walletId, RescanWalletModel vm)
|
WalletId walletId, RescanWalletModel vm)
|
||||||
|
|||||||
Reference in New Issue
Block a user