Fix
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good
Details
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good
Details
This commit is contained in:
parent
eb5af013f0
commit
bfd709afdf
|
|
@ -3,6 +3,7 @@
|
||||||
namespace DMD\LaLigaApi\Service\User\Handlers\getRelationships;
|
namespace DMD\LaLigaApi\Service\User\Handlers\getRelationships;
|
||||||
|
|
||||||
use DMD\LaLigaApi\Dto\UserDto;
|
use DMD\LaLigaApi\Dto\UserDto;
|
||||||
|
use DMD\LaLigaApi\Entity\CustomRole;
|
||||||
use DMD\LaLigaApi\Entity\User;
|
use DMD\LaLigaApi\Entity\User;
|
||||||
use DMD\LaLigaApi\Repository\UserRepository;
|
use DMD\LaLigaApi\Repository\UserRepository;
|
||||||
use Symfony\Bundle\SecurityBundle\Security;
|
use Symfony\Bundle\SecurityBundle\Security;
|
||||||
|
|
@ -24,7 +25,7 @@ class HandleGetRelationships
|
||||||
{
|
{
|
||||||
throw new HttpException(Response::HTTP_NOT_FOUND, 'User not found');
|
throw new HttpException(Response::HTTP_NOT_FOUND, 'User not found');
|
||||||
}
|
}
|
||||||
$customRoles = $user->getRoles();
|
$customRoles = $user->getCustomRoles();
|
||||||
if (empty($customRoles))
|
if (empty($customRoles))
|
||||||
{
|
{
|
||||||
return new JsonResponse([
|
return new JsonResponse([
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue