Webhosting: If WebPolicy is configured for dedicated application pool (checked)

this setting cannot be change by tenants and greyed out as such.
This commit is contained in:
robvde 2012-08-01 22:07:58 +04:00
parent 31fb739b18
commit 02c3967d27

View file

@ -108,6 +108,10 @@ namespace WebsitePanel.Portal
chkDedicatedPool.Visible = PackagesHelper.CheckGroupQuotaEnabled(packageId, ResourceGroups.Web, Quotas.WEB_APPPOOLS); chkDedicatedPool.Visible = PackagesHelper.CheckGroupQuotaEnabled(packageId, ResourceGroups.Web, Quotas.WEB_APPPOOLS);
pnlDefaultDocuments.Visible = PackagesHelper.CheckGroupQuotaEnabled(packageId, ResourceGroups.Web, Quotas.WEB_DEFAULTDOCS); pnlDefaultDocuments.Visible = PackagesHelper.CheckGroupQuotaEnabled(packageId, ResourceGroups.Web, Quotas.WEB_DEFAULTDOCS);
UserSettings settings = ES.Services.Users.GetUserSettings(PanelSecurity.SelectedUserId, "WebPolicy");
chkDedicatedPool.Checked = Utils.ParseBool(settings["EnableDedicatedPool"], false);
chkDedicatedPool.Enabled = !chkDedicatedPool.Checked;
} }