Improve custom role table, add isPublic property to League table

This commit is contained in:
Daniel Guzman
2024-05-26 11:59:18 +02:00
parent cc7c707445
commit 15990da3d0
382 changed files with 93 additions and 13470 deletions
@@ -56,7 +56,8 @@ class HandleAcceptJoinLeagueRequest
throw new HttpException(Response::HTTP_NOT_FOUND,"El usuario con id: $userId no ha sido encontrado.");
}
$customRoleEntity = new CustomRole();
$customRoleEntity->setName($leagueId. Role::LEAGUE_MEMBER->value);
$customRoleEntity->setName(Role::LEAGUE_MEMBER->value);
$customRoleEntity->setEntityId($leagueId);
$customRoleEntity->setUser($requestingUserEntity);
$this->entityManager->persist($customRoleEntity);
$this->entityManager->flush();