src/Sulu/Component/Security/Authorization/AccessControl/AccessControlManager.php
private function getUserObjectPermission(SecurityCondition $securityCondition, UserInterface $user)
    {
        $permissions = $this->getPermissions($securityCondition->getObjectType(), $securityCondition->getObjectId());

        return $this->getUserObjectPermissionByArray($permissions, $user);
    }
private function getUserObjectPermission(SecurityCondition $securityCondition, UserInterface $user)
    {
        $permissions = $this->getPermissions($securityCondition->getObjectType(), $securityCondition->getObjectId());

        return $this->getUserObjectPermissionByArray($permissions, $user);
    }
private function getUserObjectPermission ( SecurityCondition $ securityCondition , UserInterface $ user ) { $ permissions = $ this -> getPermissions ( $ securityCondition -> getObjectType ( ) , $ securityCondition -> getObjectId ( ) ) ; return $ this -> getUserObjectPermissionByArray ( $ permissions , $ user ) ; }
Returns the permissions for the given object for the given user.

@param SecurityCondition $securityCondition The condition to check
@param UserInterface $user The user for the check

@return array
Returns the permissions for the given object for the given user .