Fixed the issues where reseller and administrators are not able to delete a
tenant (WSP user account)
This commit is contained in:
parent
814bf5e35d
commit
b124b301cc
1 changed files with 5 additions and 2 deletions
|
@ -97,8 +97,11 @@ namespace WebsitePanel.Portal
|
|||
lnkChangePassword.Visible = !((PanelSecurity.SelectedUserId == PanelSecurity.EffectiveUserId) && PanelSecurity.LoggedUser.IsPeer);
|
||||
|
||||
lnkDelete.NavigateUrl = EditUrl("UserID", PanelSecurity.SelectedUserId.ToString(), "delete");
|
||||
if ((PanelSecurity.LoggedUser.Role != UserRole.Reseller) | (PanelSecurity.LoggedUser.Role != UserRole.Administrator)) lnkDelete.Visible = false;
|
||||
else lnkDelete.Visible = (PanelSecurity.SelectedUserId != PanelSecurity.EffectiveUserId);
|
||||
|
||||
if (!((PanelSecurity.LoggedUser.Role == UserRole.Reseller) | (PanelSecurity.LoggedUser.Role == UserRole.Administrator)))
|
||||
lnkDelete.Visible = false;
|
||||
else
|
||||
lnkDelete.Visible = (PanelSecurity.SelectedUserId != PanelSecurity.EffectiveUserId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue