Skip to content
Commits on Source (2)
......@@ -38,7 +38,7 @@ class FilterEntitiesDelegate
$filterByScheduled = false;
if ($this->shouldFilterScheduled($entity->getType())) {
$filterByScheduled = !ACL::_()->write($entity, $this->user)
|| !($entity->getTimeCreated() <= $this->time);
&& !($entity->getTimeCreated() <= $this->time);
}
return $this->acl->read($entity, $this->user) && !$filterByScheduled;
}));
......
......@@ -48,8 +48,8 @@ class Repository
'must' => [
[
'range' => [
'time_created' => [
'gt' => time(),
'@timestamp' => [
'gt' => time() * 1000,
]
]
],
......
......@@ -263,8 +263,8 @@ class Repository
$body['query']['function_score']['query']['bool']['must'][] = [
'range' => [
'time_created' => [
$time_created_upper => (int) ($opts['time_created_upper'] ?: time()),
'@timestamp' => [
$time_created_upper => ((int) ($opts['time_created_upper'] ?: time())) * 1000,
],
],
];
......