Skip to content
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

All items are restricted in tree (Password menu) #4495

Open
manusfreedom opened this issue Nov 26, 2024 · 0 comments
Open

All items are restricted in tree (Password menu) #4495

manusfreedom opened this issue Nov 26, 2024 · 0 comments

Comments

@manusfreedom
Copy link
Contributor

Tested with the latest Github code (master):
I have permission on all items, but I can only see them using the tree (password).
It works with search.

sources/items.queries.php line 3926:
$accessLevel = count($arrTmp) > 0 ? max($arrTmp) : $accessLevel;
My max is 50 (the array has 30 because of W and 50 because of NULL/count=0) but 50 gets no permission (between lines 4227 and 4361).

NB: I think the algorithm is wrong (and not very easy to maintain) and why not use a constant (with an understandable name) instead of an int value everywhere?

@manusfreedom manusfreedom changed the title All items are restricted All items are restricted in tree (Password menu) Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant