commit 0e391a1cd7da7139197098a766a4a1a9440e6032 Author: smarcet Date: Mon Oct 19 21:20:14 2020 -0300 Fix on event serializer Change-Id: I50d2ff971be7df712fff8964d3b803cd07c737d5 Signed-off-by: smarcet diff --git a/app/Http/Utils/Filters/FilterElement.php b/app/Http/Utils/Filters/FilterElement.php index 198ca01..9863103 100644 --- a/app/Http/Utils/Filters/FilterElement.php +++ b/app/Http/Utils/Filters/FilterElement.php @@ -38,6 +38,9 @@ class FilterElement extends AbstractFilterElement { parent::__construct($operator); $this->field = $field; + if($this->field == 'start_date'){ + $value = intval($value); + } $this->value = $value; $this->same_field_op = $same_field_op; } diff --git a/app/ModelSerializers/Summit/SummitEventSerializer.php b/app/ModelSerializers/Summit/SummitEventSerializer.php index 7ac84a9..ec7790f 100644 --- a/app/ModelSerializers/Summit/SummitEventSerializer.php +++ b/app/ModelSerializers/Summit/SummitEventSerializer.php @@ -142,10 +142,10 @@ class SummitEventSerializer extends SilverStripeSerializer $values['attendance'] = $attendance; } - if($event->hasAccess($this->resource_server_context->getCurrentUser())){ + //if($event->hasAccess($this->resource_server_context->getCurrentUser())){ $values['streaming_url'] = $event->getStreamingUrl(); $values['etherpad_link'] = $event->getEtherpadLink(); - } + //} if (!empty($expand)) { foreach (explode(',', $expand) as $relation) {