We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ae6e3 commit 1ab0230Copy full SHA for 1ab0230
src/CoreBundle/Entity/AccessUrlRelUser.php
@@ -6,6 +6,8 @@
6
7
namespace Chamilo\CoreBundle\Entity;
8
9
+use ApiPlatform\Metadata\ApiResource;
10
+use ApiPlatform\Metadata\Post;
11
use Chamilo\CoreBundle\Traits\UserTrait;
12
use Doctrine\ORM\Mapping as ORM;
13
use Stringable;
@@ -15,6 +17,9 @@
15
17
#[ORM\Index(name: 'idx_access_url_rel_user_access_url', columns: ['access_url_id'])]
16
18
#[ORM\Index(name: 'idx_access_url_rel_user_access_url_user', columns: ['user_id', 'access_url_id'])]
19
#[ORM\Entity]
20
+#[ApiResource(
21
+ security: "is_granted('ROLE_ADMIN')"
22
+)]
23
class AccessUrlRelUser implements EntityAccessUrlInterface, Stringable
24
{
25
use UserTrait;
0 commit comments