I got the message
Did you forget to run "composer require symfony/security-core"? Unknown function "is_granted" in "...".
when calling template-code
{% if is_granted(constant('Rights::RGT_TOUR_ADD')) %}...{% endif %}
I am using symfony v5.3.7, symfony/security-core and symfony/twig-bridge are both v5.3.7. twig itself is v3.3.2 (just updated the whole stuff). All packages are installed in the "good way" of "symfony composer require..."
There is a bunch of extensions in /vendor/symfony/twig-bridge/Extension and most of them are loaded, but not the SecurityExtension (even though available).
Of course I don't want to hard-code a solution, due to the fact that it would be done in /vendor which is in .gitignore ;)
I already tried forced reinstalling of the package... No change.
Just in case this info is needed... PHP is v7.4.15 x64