Update budget element voter and improve form handling in permissions group

The base class of BudgetElementVoter has been changed to Voter, and the form handling in PermissionsGroupController has been improved for better validation. In addition, minor changes were made for better menu building and service configuration was updated. Unnecessary date validation in AbstractElement has been removed as well.
This commit is contained in:
2024-04-10 10:31:00 +02:00
parent 76fdd6d889
commit a3efae7831
5 changed files with 19 additions and 18 deletions

View File

@@ -40,7 +40,6 @@ abstract class AbstractElement
#[ORM\ManyToOne(targetEntity: Person::class)]
private ?Person $person = null;
#[Assert\Date]
#[ORM\Column(name: 'startDate', type: \Doctrine\DBAL\Types\Types::DATETIME_IMMUTABLE)]
private \DateTimeImmutable $startDate;