mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
30 lines
728 B
PHP
30 lines
728 B
PHP
<?php
|
|
|
|
/**
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Chill\MainBundle\Controller;
|
|
|
|
use Chill\MainBundle\CRUD\Controller\ApiController;
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
|
/**
|
|
* Class LocationApiController.
|
|
*/
|
|
class LocationApiController extends ApiController
|
|
{
|
|
public function customizeQuery(string $action, Request $request, $query): void
|
|
{
|
|
$query->andWhere(
|
|
$query->expr()->andX(
|
|
$query->expr()->eq('e.availableForUsers', "'TRUE'"),
|
|
$query->expr()->eq('e.active', "'TRUE'"),
|
|
)
|
|
);
|
|
}
|
|
}
|