Fixed: Left menu (UserAccountMenu) did not interpret the roles. Ensured it
interprets the role of logged-on user.
This commit is contained in:
parent
72348041f0
commit
7ec2cd7e20
2 changed files with 11 additions and 11 deletions
|
@ -101,7 +101,7 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
display = false;
|
||||
string[] arrRoles = roles.Split(',');
|
||||
string userRole = PanelSecurity.SelectedUser.Role.ToString();
|
||||
string userRole = PanelSecurity.LoggedUser.Role.ToString();
|
||||
foreach (string role in arrRoles)
|
||||
{
|
||||
if (String.Compare(userRole, role, true) == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue