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:
robvde 2012-10-13 10:54:24 +04:00
parent 71875ca55f
commit b4a760f6ec
24 changed files with 235 additions and 42 deletions

View file

@ -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)));
}
}
}