mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-19 18:37:45 +00:00
Merge branch '471-fix-inactive-user-group-api' into 'master'
Hide inactive user groups in API responses Closes #471 See merge request Chill-Projet/chill-bundles!927
This commit is contained in:
7
.changes/unreleased/Fixed-20251119-161233.yaml
Normal file
7
.changes/unreleased/Fixed-20251119-161233.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
kind: Fixed
|
||||
body: |
|
||||
Hide the display of inactive user groups in the api
|
||||
time: 2025-11-19T16:12:33.803084517+01:00
|
||||
custom:
|
||||
Issue: "471"
|
||||
SchemaChange: No schema change
|
||||
@@ -12,5 +12,12 @@ declare(strict_types=1);
|
||||
namespace Chill\MainBundle\Controller;
|
||||
|
||||
use Chill\MainBundle\CRUD\Controller\ApiController;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class UserGroupApiController extends ApiController {}
|
||||
class UserGroupApiController extends ApiController
|
||||
{
|
||||
protected function customizeQuery(string $action, Request $request, $query): void
|
||||
{
|
||||
$query->andWhere('e.active = TRUE');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user