|
|
|
@ -7,8 +7,8 @@ declare(strict_types=1); |
|
|
|
|
namespace Chamilo\CoreBundle\Entity; |
|
|
|
|
|
|
|
|
|
use ApiPlatform\Core\Annotation\ApiFilter; |
|
|
|
|
use ApiPlatform\Core\Annotation\ApiProperty; |
|
|
|
|
use ApiPlatform\Core\Annotation\ApiResource; |
|
|
|
|
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; |
|
|
|
|
use DateTime; |
|
|
|
|
use Doctrine\Common\Collections\ArrayCollection; |
|
|
|
|
use Doctrine\Common\Collections\Collection; |
|
|
|
@ -16,7 +16,6 @@ use Doctrine\ORM\Mapping as ORM; |
|
|
|
|
use Gedmo\Mapping\Annotation as Gedmo; |
|
|
|
|
use Symfony\Component\Serializer\Annotation\Groups; |
|
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
|
|
|
|
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\Entity |
|
|
|
@ -34,7 +33,7 @@ use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; |
|
|
|
|
], |
|
|
|
|
], |
|
|
|
|
itemOperations:[ |
|
|
|
|
"get" => [ |
|
|
|
|
'get' => [ |
|
|
|
|
'security' => "is_granted('ROLE_ADMIN')", |
|
|
|
|
], |
|
|
|
|
'put' => [ |
|
|
|
|