Changed API policy for calculating feeRate (#3217)

This commit is contained in:
Wouter Samaey
2021-12-20 11:16:23 +01:00
committed by GitHub
parent bb751793c8
commit f4bde164bf
2 changed files with 2 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ namespace BTCPayServer.Controllers.GreenField
}); });
} }
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)] [Authorize(Policy = Policies.CanViewStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
[HttpGet("~/api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}/wallet/feerate")] [HttpGet("~/api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}/wallet/feerate")]
public async Task<IActionResult> GetOnChainFeeRate(string storeId, string cryptoCode, int? blockTarget = null) public async Task<IActionResult> GetOnChainFeeRate(string storeId, string cryptoCode, int? blockTarget = null)
{ {

View File

@@ -115,7 +115,7 @@
"security": [ "security": [
{ {
"API Key": [ "API Key": [
"btcpay.store.canmodifystoresettings" "btcpay.store.canviewstoresettings"
], ],
"Basic": [] "Basic": []
} }