Narrowed down the capabilities of peer accounts within a consumer organization
This commit is contained in:
parent
f4dfdd7b01
commit
ba71e9b29c
11 changed files with 177 additions and 69 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue