mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Allow resolution of any settings via DI
This commit is contained in:
@@ -787,8 +787,7 @@ namespace BTCPayServer.Controllers
|
||||
|
||||
private async Task<(bool HotWallet, bool RPCImport)> CanUseHotWallet()
|
||||
{
|
||||
var policies = await _settingsRepository.GetSettingAsync<PoliciesSettings>();
|
||||
return await _authorizationService.CanUseHotWallet(policies, User);
|
||||
return await _authorizationService.CanUseHotWallet(_policiesSettings, User);
|
||||
}
|
||||
|
||||
private async Task<string> ReadAllText(IFormFile file)
|
||||
|
||||
Reference in New Issue
Block a user