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

Issue with Doctrine:Proxies in AclTreeHelper #1

Open
aleduc2 opened this issue Aug 14, 2015 · 0 comments
Open

Issue with Doctrine:Proxies in AclTreeHelper #1

aleduc2 opened this issue Aug 14, 2015 · 0 comments

Comments

@aleduc2
Copy link

aleduc2 commented Aug 14, 2015

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

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