coopTilleuls / CoopTilleulsAclSonataAdminExtensionBundle

ACL list filtering for SonataAdmin
http://les-tilleuls.coop
MIT License
45 stars 21 forks source link

Command "sonata:admin:explain" cause a fatal error / Security context #3

Closed FabienD closed 10 years ago

FabienD commented 10 years ago

Hi,

With this bundle, the Sonata command line "sonata:admin:explain" cause a fatal error (Security context is not available through command line) :

PHP Fatal error:  Call to a member function getUser() on a non-object in /Users/fabien/Workspaces/Sites/sandbox.dev/vendor/tilleuls/acl-sonata-admin-extension-bundle/CoopTilleuls/Bundle/AclSonataAdminExtensionBundle/Admin/AclAdminExtension.php on line 50

May be a simple patch like this can solve the issue :

https://gist.github.com/FabienD/8221873

Regards, Fabien

dunglas commented 10 years ago

Can you make a PR?