-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
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
ACL isn't being respected on IndexMenu2 (TreeNew) #309
Comments
After applying the PR #310 the IndexMenu TreeNew is shown as expected: |
The fix is now in the latest step that prepares the data that must be outputted for the treenew. I'm surprised that $data array in makeNodes contains entries that doesn't respect ACL. The step before that actually generates that $data array should already check this... |
Do I understand it correctly that pages which are forbidden by ACL are hidden, but the namespaces containing them are not? I rewrote the code here a bit, so the behaviour might be changed, but my expectation was that the behaviour is still the same as before. If you use the old tree, then these namespaces were also shown? |
As one of the reasons why indexmenu cannot see if lower child nodes are allowed or not is that it does not load lower nodes, this is to make the lazy loading more efficient. |
I believe the ACL check wouldn't take so much time to be made, it loads in chuncks and only when user expands a node by default, so it shouldn't be an issue so my fix seems to be reasonable to do into the end instead of wherelse it's being doing right now. I don't want to use |
|
Hello @Klap-in, |
Hello,
When using the IndexMenu2 (TreeNew), it isn't respecting the ACL restrictions and still shows unaccessible items on sidebar, as can be seen below.
The ACL doesn't allows the user to access the "3cx", "ad", "airwave", "apache", "cacti", "central", "conceitos" and "db" ns's are being shown. When expanding them, they shows the subdirectory structure only (it's not possible to click or enter on them) - the pages itself respect the ACL and aren't being shown.
The "Aruba ClearPass", "Aruba Instant AP" and "Aruba Mobility" namespaces, the user has access to and they show the namespaces and page files as expected, but inside "Aruba ClearPass", the user has no access to "labguide" subns but it's directory structure are still shown similar to the ns's cited above.
Here's how the ACL is set to "Aruba ClearPass" ns and the other ones (set to the group that this user belongs - the user belongs to "@Lettel" and "@user" groups):
The text was updated successfully, but these errors were encountered: