mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
feat: improve security when delete
This commit is contained in:
parent
8b47d6068c
commit
1c1821838f
@ -32,7 +32,9 @@ use Symfony\Component\Uid\Uuid;
|
||||
normalizationContext: ['groups' => ['connector:create', 'connector:list']], denormalizationContext: ['groups' => 'connector:create'],
|
||||
name: 'create'
|
||||
),
|
||||
new Delete(),
|
||||
new Delete(
|
||||
security: 'object.user == user'
|
||||
),
|
||||
]
|
||||
)]
|
||||
#[ORM\Entity(repositoryClass: ConnectorRepository::class)]
|
||||
|
||||
@ -74,7 +74,9 @@ use Symfony\Component\Uid\Uuid;
|
||||
security: 'object.user == user',
|
||||
name: 'update'
|
||||
),
|
||||
new Delete(),
|
||||
new Delete(
|
||||
security: 'object.user == user'
|
||||
),
|
||||
],
|
||||
)]
|
||||
class WatchList
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user