Fix authorization
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good

This commit is contained in:
Daniel Guzman
2024-06-03 00:22:36 +02:00
parent 5758e7af43
commit 33980dbb46
746 changed files with 14004 additions and 561 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class AuthorizeRequest
{
throw new HttpException(Response::HTTP_FORBIDDEN, "Unauthorized.");
}
$customRole = $this->customRoleRepository->findBy([
$customRole = $this->customRoleRepository->findOneBy([
'name' => Role::LEAGUE_PRESIDENT->value,
'user' => $userEntity,
'entityId' => $leagueId