2017-09-29 75 views

回答

0

如果你想检查是否存在值(同PHP in_array()):

{% if 'ROLE_ADMIN' in app.user.roles %}