Explicitly make hasPermissions and permissionsUrl in Twig available