I'm trying to add a spring balise <sec:authorize>
on my script Ext JS. I made the following code:
text: 'Management',
menuAlign: 'tr-br',
menu:{
items:[
<sec:authorize access="hasAnyRole('ROLE_ADD_SITE')">
{
text: 'Sites',
handler : function() {
window.location = "/application";
}
},
</sec:authorize>
I want to add tags like above. Does anyone have any idea to make this?
Aucun commentaire:
Enregistrer un commentaire