We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If setted to "Menu", the links module will only reflect per RoleID permissions
Steps to reproduce the behavior:
User permissions to be reflected.
The text was updated successfully, but these errors were encountered:
I've fixed it with this code in the Switch-Case for the Menu Type in "Links.ascx.cs", but I'm not ready to commit a pull request:
if (MenuAllUser.Equals("No")) { foreach (var role in tabinfo.TabPermissions.ToList()) { if (role.AllowAccess) { if (role.UserID > 0) link.GrantRoles += "U" + role.UserID + ";"; else link.GrantRoles += role.RoleID + ";"; } } }
...then in the final if:
if (isInARole | link.GrantRoles.Contains("-2") | link.GrantRoles.Contains("-1") | link.GrantRoles.Contains("U" + this.UserInfo.UserID) | this.UserInfo.IsSuperUser | this.UserInfo.IsInRole(this.PortalSettings.AdministratorRoleName)) linksToShow.Add(link);
Sorry, something went wrong.
Can I ask why you are not ready for a pull request ?
No branches or pull requests
Describe the bug
If setted to "Menu", the links module will only reflect per RoleID permissions
Software Versions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
User permissions to be reflected.
The text was updated successfully, but these errors were encountered: