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
fixed missing own asset rule for parent recursive get access rule #17009
fixed missing own asset rule for parent recursive get access rule #17009
Conversation
IMO It would be better to set this more explicitly, I mean using |
sure, i can change it to |
it a not only about readability, which i argue it is quite readable , it is not too long, |
@ggppdk i added the casting to int |
All this critique about type casting and no follow on... (Needs merge conflicts resolved) |
there was no conflict, merging of staging branch went fine... |
I have tested this item ✅ successfully on fc4d255 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17009. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17009. |
Finally a happy end. Thanks |
Pull Request for Issue # .
Summary of Changes
Fixed a failing strict comparison operator, which prevents parent recursive asset rule to work properly
self::$assetPermissionsParentIdMapping[$extensionName][$id]
is the result of a database query, so the type ofself::$assetPermissionsParentIdMapping[$extensionName][$id]->id
is string.$assetId
if an integer, so the test result is false, but it should be true...Testing Instructions
Not easy to test, as this parameters don't seem to be use directly in joomla core...
Expected result
Actual result
Documentation Changes Required
none