Added: WebHosting: Moved hostname support enablement to hosting plan to enable
closer compatibility with legacy approach. Default hostname set within webpolicy settings
This commit is contained in:
parent
71875ca55f
commit
b4a760f6ec
24 changed files with 235 additions and 42 deletions
|
@ -295,5 +295,13 @@ namespace WebsitePanel.Portal
|
|||
(cntx.Quotas[key].QuotaTypeId != 1 && (cntx.Quotas[key].QuotaAllocatedValue > 0 || cntx.Quotas[key].QuotaAllocatedValue == -1)));
|
||||
}
|
||||
|
||||
|
||||
public static bool CheckQouta(string key, HostingPlanContext cntx)
|
||||
{
|
||||
return cntx.Quotas.ContainsKey(key) &&
|
||||
((cntx.Quotas[key].QuotaAllocatedValue == 1 && cntx.Quotas[key].QuotaTypeId == 1) ||
|
||||
(cntx.Quotas[key].QuotaTypeId != 1 && (cntx.Quotas[key].QuotaAllocatedValue > 0 || cntx.Quotas[key].QuotaAllocatedValue == -1)));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue