This commit is contained in:
Virtuworks 2014-09-25 00:47:28 -04:00
commit fc113d519c

View file

@ -57,12 +57,14 @@ namespace WebsitePanel.Portal.ExchangeServer
btnCreate.Enabled = (!(cntx.Quotas[Quotas.ORGANIZATIONS].QuotaAllocatedValue <= gvOrgs.Rows.Count) || (cntx.Quotas[Quotas.ORGANIZATIONS].QuotaAllocatedValue == -1)); btnCreate.Enabled = (!(cntx.Quotas[Quotas.ORGANIZATIONS].QuotaAllocatedValue <= gvOrgs.Rows.Count) || (cntx.Quotas[Quotas.ORGANIZATIONS].QuotaAllocatedValue == -1));
} }
/*
if (PanelSecurity.LoggedUser.Role == UserRole.User) if (PanelSecurity.LoggedUser.Role == UserRole.User)
{ {
gvOrgs.Columns[2].Visible = gvOrgs.Columns[3].Visible = gvOrgs.Columns[5].Visible = false; gvOrgs.Columns[2].Visible = gvOrgs.Columns[3].Visible = gvOrgs.Columns[5].Visible = false;
btnCreate.Enabled = false; btnCreate.Enabled = false;
btnSetDefaultOrganization.Enabled = false; btnSetDefaultOrganization.Enabled = false;
} }
*/
if (!Page.IsPostBack) if (!Page.IsPostBack)
{ {