twilio fix
This commit is contained in:
parent
d022ecf960
commit
70c772cd3b
8 changed files with 127 additions and 45 deletions
|
@ -53,6 +53,18 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return GetSystemSettingsInternal(settingsName, !isDemoAccount);
|
||||
}
|
||||
|
||||
public static SystemSettings GetSystemSettingsActive(string settingsName, bool decrypt)
|
||||
{
|
||||
// check account
|
||||
int accountCheck = SecurityContext.CheckAccount(DemandAccount.IsActive);
|
||||
if (accountCheck < 0)
|
||||
return null;
|
||||
|
||||
bool isDemoAccount = (SecurityContext.CheckAccount(DemandAccount.NotDemo) < 0);
|
||||
|
||||
return GetSystemSettingsInternal(settingsName, decrypt && isDemoAccount);
|
||||
}
|
||||
|
||||
internal static SystemSettings GetSystemSettingsInternal(string settingsName, bool decryptPassword)
|
||||
{
|
||||
// create settings object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue