Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Twig] Roles completing/goto not working with array call #886

Closed
King2500 opened this issue Mar 9, 2017 · 3 comments
Closed

[Twig] Roles completing/goto not working with array call #886

King2500 opened this issue Mar 9, 2017 · 3 comments
Labels

Comments

@King2500
Copy link
Contributor

King2500 commented Mar 9, 2017

This works perfectly:

{% if is_granted('PERMISSION_ARTICLE_LIST') %}

.. but this does not:

{% if is_granted(['PERMISSION_ARTICLE_PUBLISH_ALL', 'PERMISSION_ARTICLE_PUBLISH_OWN'], article) %}

In PHP side, both ways are working.

@King2500 King2500 changed the title Roles completing/goto not working with array call [Twig] Roles completing/goto not working with array call Mar 9, 2017
@Haehnchen
Copy link
Owner

thx missed this, added the crazy pattern now

@King2500
Copy link
Contributor Author

Yeah, looks crazy :) 👍

@Haehnchen
Copy link
Owner

released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants