You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
manusfreedom
changed the title
All items are restricted
All items are restricted in tree (Password menu)
Nov 26, 2024
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?
The text was updated successfully, but these errors were encountered: