protected function isUserExcluded(\core_kernel_classes_Resource $delivery, User $user){
        $excludedUsers = $delivery->getPropertyValues(new \core_kernel_classes_Property(DeliveryContainerService::PROPERTY_EXCLUDED_SUBJECTS));
        return in_array($user->getIdentifier(), $excludedUsers);
    }
protected function isUserExcluded(\core_kernel_classes_Resource $delivery, User $user){
        $excludedUsers = $delivery->getPropertyValues(new \core_kernel_classes_Property(DeliveryContainerService::PROPERTY_EXCLUDED_SUBJECTS));
        return in_array($user->getIdentifier(), $excludedUsers);
    }
protected function isUserExcluded ( \ core_kernel_classes_Resource $ delivery , User $ user ) { $ excludedUsers = $ delivery -> getPropertyValues ( new \ core_kernel_classes_Property ( DeliveryContainerService :: PROPERTY_EXCLUDED_SUBJECTS ) ) ; return in_array ( $ user -> getIdentifier ( ) , $ excludedUsers ) ; }
Check if a user is excluded from a delivery
@param core_kernel_classes_Resource $delivery
@param User $user the URI of the user to check
@return boolean true if excluded
Check if a user is excluded from a delivery