Created
January 11, 2012 18:39
-
-
Save wodor/1596097 to your computer and use it in GitHub Desktop.
getting username of entity, Entry->mask tells permission type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $aclProvider = $this->get('security.acl.provider'); | |
| $firstAce = current($aclProvider->findAcl(ObjectIdentity::fromDomainObject($entity))->getObjectAces()); | |
| $username = $firstAce->getSecurityIdentity()->getUsername(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment