Fixed: Mailboxplan editing when disabled still allowed to delete mailbox

Mailboxplans removed from menu for consumer peer accounts
This commit is contained in:
robvde 2012-09-03 18:58:17 +04:00
parent b47c96bad5
commit 531fd5c635
2 changed files with 4 additions and 3 deletions

View file

@ -51,7 +51,7 @@ namespace WebsitePanel.Portal.ExchangeServer
{
if (cntx.Quotas[Quotas.EXCHANGE2007_ENABLEDPLANSEDITING].QuotaAllocatedValue != 1)
{
gvMailboxPlans.Columns[2].Visible = false;
gvMailboxPlans.Columns[3].Visible = false;
btnAddMailboxPlan.Enabled = btnAddMailboxPlan.Visible = false;
}
}

View file

@ -139,6 +139,7 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls
if (CheckQouta(Quotas.EXCHANGE2007_ACTIVESYNCALLOWED, cntx))
exchangeGroup.MenuItems.Add(CreateMenuItem("ActiveSyncPolicy", "activesync_policy"));
if (!hideItems)
if (CheckQouta(Quotas.EXCHANGE2007_MAILBOXES, cntx))
exchangeGroup.MenuItems.Add(CreateMenuItem("MailboxPlans", "mailboxplans"));