Narrowed down the capabilities of peer accounts within a consumer organization

This commit is contained in:
robvde 2012-09-04 15:07:38 +04:00
parent f4dfdd7b01
commit ba71e9b29c
11 changed files with 177 additions and 69 deletions

View file

@ -58,6 +58,20 @@ namespace WebsitePanel.Portal
lnkBackup.Visible = lnkRestore.Visible = ToolsHeader.Visible;
}
UserInfo user = UsersHelper.GetUser(PanelSecurity.EffectiveUserId);
if (user != null)
{
PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId);
if ((user.Role == UserRole.User) & (Utils.CheckQouta(Quotas.EXCHANGE2007_ISCONSUMER, cntx)))
{
lnkBackup.Visible = lnkRestore.Visible = ToolsHeader.Visible = false;
}
}
}
}
}