Tighten the ResellerCSR and PlatformCSR roles and give them the capabilities
to update chargeable items such as plan assignement and add ons Fixed plan quota viewer that got broken with last commit
This commit is contained in:
parent
503dddcf4e
commit
02c59802db
14 changed files with 111 additions and 31 deletions
|
@ -40,9 +40,27 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
BindSpace();
|
||||
BindSpaceAddons();
|
||||
BindRoles(PanelSecurity.EffectiveUserId);
|
||||
}
|
||||
}
|
||||
|
||||
private void BindRoles(int userId)
|
||||
{
|
||||
// load selected user
|
||||
UserInfo user = UsersHelper.GetUser(userId);
|
||||
|
||||
if (user != null)
|
||||
{
|
||||
if ((user.Role == UserRole.User) |
|
||||
(PanelSecurity.LoggedUser.Role == UserRole.ResellerCSR) |
|
||||
(PanelSecurity.LoggedUser.Role == UserRole.ResellerHelpdesk) |
|
||||
(PanelSecurity.LoggedUser.Role == UserRole.PlatformCSR) |
|
||||
(PanelSecurity.LoggedUser.Role == UserRole.PlatformHelpdesk))
|
||||
this.rbPackageQuotas.Enabled = this.rbPlanQuotas.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void BindSpace()
|
||||
{
|
||||
PackageInfo package = ES.Services.Packages.GetPackage(PanelSecurity.PackageId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue