2014-07-10 64 views

回答

0

如果您使用的是KnpMenuBundle之類的東西,則可以在您的樹枝模板或安全環境isGranted('ROLE_*ROLE*')中使用{% if is_granted('ROLE_*ROLE*' %}