fix(backend) : fix TimeEntry API route order and config reference typo
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,12 +25,13 @@ use Symfony\Component\Serializer\Attribute\Groups;
|
|||||||
#[ApiResource(
|
#[ApiResource(
|
||||||
operations: [
|
operations: [
|
||||||
new GetCollection(),
|
new GetCollection(),
|
||||||
new Get(),
|
|
||||||
new Get(
|
new Get(
|
||||||
|
name: 'active_time_entry',
|
||||||
uriTemplate: '/time_entries/active',
|
uriTemplate: '/time_entries/active',
|
||||||
provider: ActiveTimeEntryProvider::class,
|
provider: ActiveTimeEntryProvider::class,
|
||||||
description: 'Get the active timer for the current user',
|
description: 'Get the active timer for the current user',
|
||||||
),
|
),
|
||||||
|
new Get(),
|
||||||
new Post(security: "is_granted('ROLE_USER')"),
|
new Post(security: "is_granted('ROLE_USER')"),
|
||||||
new Patch(security: "is_granted('ROLE_ADMIN') or object.getUser() == user"),
|
new Patch(security: "is_granted('ROLE_ADMIN') or object.getUser() == user"),
|
||||||
new Delete(security: "is_granted('ROLE_ADMIN') or object.getUser() == user"),
|
new Delete(security: "is_granted('ROLE_ADMIN') or object.getUser() == user"),
|
||||||
|
|||||||
Reference in New Issue
Block a user