coopTilleuls / CoopTilleulsAclSonataAdminExtensionBundle

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

The extension seems not working with ACL on roles #15

Closed meyerbaptiste closed 9 years ago

meyerbaptiste commented 9 years ago

The extension seems not to be compatible with https://github.com/sonata-project/SonataAdminBundle/pull/2600

meyerbaptiste commented 9 years ago
        // Get identity ACL identifier
        $identifier = sprintf('%s-%s', $securityIdentity->getClass(), $securityIdentity->getUsername());
        $identityStmt = $this->databaseConnection->prepare('SELECT id FROM acl_security_identities WHERE identifier = :identifier');
        $identityStmt->bindValue('identifier', $identifier);
        $identityStmt->execute();