Add btcpay.store.cancreateinvoice claim, and use that for the store

This commit is contained in:
nicolas.dorier
2018-09-08 14:32:26 +09:00
parent e86b4d89ca
commit fed53661b3
14 changed files with 44 additions and 43 deletions

View File

@@ -33,7 +33,7 @@ namespace BTCPayServer.Controllers
else
{
var storeBlob = store.GetStoreBlob();
if (!storeBlob.PayButtonEnabled)
if (!storeBlob.AnyoneCanInvoice)
ModelState.AddModelError("Store", "Store has not enabled Pay Button");
}