ZUGFeRDService & ZUGFeRDRESTService:
Neuer Config-Schalter "AllowEBInterface"
This commit is contained in:
@@ -80,6 +80,7 @@ namespace ZUGFeRDRESTService.Controllers
|
||||
private bool _AllowZugferd23x;
|
||||
private bool _AllowZugferd10;
|
||||
private bool _AllowPeppolBISBill3x;
|
||||
private bool _AllowEBInterface;
|
||||
|
||||
private string _GDPictureVersion;
|
||||
|
||||
@@ -104,7 +105,8 @@ namespace ZUGFeRDRESTService.Controllers
|
||||
AllowZugferd_1_0_Schema = _AllowZugferd10,
|
||||
AllowZugferd_2_x_Schema = _AllowZugferd2x,
|
||||
AllowZugferd_2_3_x_Schema = _AllowZugferd23x,
|
||||
AllowPeppol_3_x_Schema = _AllowPeppolBISBill3x
|
||||
AllowPeppol_3_x_Schema = _AllowPeppolBISBill3x,
|
||||
AllowEBInterface_Schema = _AllowEBInterface,
|
||||
});
|
||||
_props = new PropertyValues(_logConfig);
|
||||
|
||||
@@ -188,6 +190,12 @@ namespace ZUGFeRDRESTService.Controllers
|
||||
_AllowPeppolBISBill3x = false;
|
||||
}
|
||||
|
||||
if (!bool.TryParse(oZugferdConfig["AllowEBInterface"], out _AllowEBInterface))
|
||||
{
|
||||
_logger.Info("Configuration AllowEBInterface was not set. Using default value [{0}]", false);
|
||||
_AllowEBInterface = false;
|
||||
}
|
||||
|
||||
_GDPictureVersion = oAppConfig["GDPictureVersion"];
|
||||
if (string.IsNullOrEmpty(_GDPictureVersion))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user