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
Hi,
I found that, depending of how a user entity is retrieved before I select the objects it has access to, a problem can occur : the user class can be a doctrine proxy (get_class($user) begins with "Proxies__CG__..."), and then the acl filter returns no result.
I fixed it by changing the getAclQuery() function (var $userClassIdn) using the logic in the code of Symfony\Component\Security\Core\Util\ClassUtils::getRealClass($object) which retrieves the true class of a proxy object.
But the functions and properties in the AclTreeHelper class are declared as private and I cannot then make sure that my changes will persist in case of a "composer update".
May be you could make the changes in you bundle ?
Thanks,
A. Leduc
The text was updated successfully, but these errors were encountered:
Hi,
I found that, depending of how a user entity is retrieved before I select the objects it has access to, a problem can occur : the user class can be a doctrine proxy (get_class($user) begins with "Proxies__CG__..."), and then the acl filter returns no result.
I fixed it by changing the getAclQuery() function (var $userClassIdn) using the logic in the code of Symfony\Component\Security\Core\Util\ClassUtils::getRealClass($object) which retrieves the true class of a proxy object.
But the functions and properties in the AclTreeHelper class are declared as private and I cannot then make sure that my changes will persist in case of a "composer update".
May be you could make the changes in you bundle ?
Thanks,
A. Leduc
The text was updated successfully, but these errors were encountered: