diff --git a/src/Bundle/ChillMainBundle/Controller/LocationController.php b/src/Bundle/ChillMainBundle/Controller/LocationController.php index dc59db9b1..fb1c1c61a 100644 --- a/src/Bundle/ChillMainBundle/Controller/LocationController.php +++ b/src/Bundle/ChillMainBundle/Controller/LocationController.php @@ -9,11 +9,9 @@ class LocationController extends CRUDController { protected function customizeQuery(string $action, Request $request, $query): void { - //$query->where('e.availableforusers', "'TRUE'"); // not working $query->where('e.availableForUsers = true'); //TODO not working } - protected function createEntity(string $action, Request $request): object { $entity = parent::createEntity($action, $request); diff --git a/src/Bundle/ChillMainBundle/Resources/views/Location/index.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Location/index.html.twig index 693d1c3e4..a57e1653e 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Location/index.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Location/index.html.twig @@ -16,8 +16,7 @@
{% for entity in entities %} - {% if entity.availableForUsers %} -