Skip to content

Commit 905b52c

Browse files
committed
Chore: email subject correct and example user securety expression fix
1 parent 38a74c3 commit 905b52c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private function addUserNode(ArrayNodeDefinition $rootNode): void
182182
->children()
183183
->scalarNode('redirect_path_query')->end()
184184
->scalarNode('default_redirect_path')->isRequired()->end()
185-
->scalarNode('subject')->cannotBeEmpty()->defaultValue('Your password has been reset')->end()
185+
->scalarNode('subject')->cannotBeEmpty()->defaultValue('Your password reset request')->end()
186186
->end()
187187
->end()
188188
->integerNode('repeat_ttl_seconds')->defaultValue(8600)->end()

tests/Functional/TestBundle/Entity/User.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
#[ApiResource(operations: [
3030
new GetCollection(order: ['createdAt' => 'DESC'], security: "is_granted('ROLE_SUPER_ADMIN')"),
3131
new Post(security: "is_granted('ROLE_SUPER_ADMIN')"),
32-
new Get(security: "is_granted('ROLE_SUPER_ADMIN') or object.getId() == user.getId()"),
33-
new Put(security: "is_granted('ROLE_SUPER_ADMIN') or object.getId() == user.getId()"),
34-
new Patch(security: "is_granted('ROLE_SUPER_ADMIN') or object.getId() == user.getId()"),
32+
new Get(security: "is_granted('ROLE_SUPER_ADMIN') or (user and object.getId() == user.getId())"),
33+
new Put(security: "is_granted('ROLE_SUPER_ADMIN') or (user and object.getId() == user.getId())"),
34+
new Patch(security: "is_granted('ROLE_SUPER_ADMIN') or (user and object.getId() == user.getId())"),
3535
new Delete(security: "is_granted('ROLE_SUPER_ADMIN')"),
3636
])]
3737
#[ORM\Entity]

0 commit comments

Comments
 (0)