Add authorization on WalletRescan

This commit is contained in:
nicolas.dorier
2018-10-27 22:51:09 +09:00
parent e5eb0c79c0
commit ca571cd756

View File

@@ -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)