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

@@ -19,8 +19,9 @@ use Chill\MainBundle\Security\ProvideRoleHierarchyInterface;
use Chill\PersonBundle\Entity\Household\Household;
use Chill\PersonBundle\Entity\Person;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
class BudgetElementVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
class BudgetElementVoter extends Voter implements ProvideRoleHierarchyInterface
{
final public const CREATE = 'CHILL_BUDGET_ELEMENT_CREATE';