Tag

Roles

1 post tagged Roles.

  • is_granted in Twig: roles and IS_AUTHENTICATED

    09/02/2026

    is_granted in Twig: roles and IS_AUTHENTICATED

    is_granted takes more than roles, and picking the wrong one gives you a check that quietly passes when it should not. What each attribute tests, why role hierarchy makes ROLE_USER true for your admins, and where the check belongs.

Often tagged together with