src/Kunstmaan/AdminBundle/Helper/Security/Acl/Permission/PermissionAdmin.php
public function getPermission($role)
    {
        if ($role instanceof RoleInterface || $role instanceof \Symfony\Component\Security\Core\Role\Role) {
            $role = $role->getRole();
        }
        if (isset($this->permissions[$role])) {
            return $this->permissions[$role];
        }

        return null;
    }
public function getPermission($role)
    {
        if ($role instanceof RoleInterface || $role instanceof \Symfony\Component\Security\Core\Role\Role) {
            $role = $role->getRole();
        }
        if (isset($this->permissions[$role])) {
            return $this->permissions[$role];
        }

        return null;
    }
public function getPermission ( $ role ) { if ( $ role instanceof RoleInterface || $ role instanceof \ Symfony \ Component \ Security \ Core \ Role \ Role ) { $ role = $ role -> getRole ( ) ; } if ( isset ( $ this -> permissions [ $ role ] ) ) { return $ this -> permissions [ $ role ] ; } return null ; }
Get permission for specified role.

@param RoleInterface|string $role

@return MaskBuilder|null
Get permission for specified role .