Grails filters several actions

Inside one filter, how can I map more than one action to the same controller?

def filters = { organisationDelete(controller: "organisation", action: "confirmDelete, delete") { //... } } 

In this mapping, I have "confirmDelete" as GET and "delete" as POST

+7
source share
1 answer

in the old ACEGI plugin, I could write actions separated by a comma. Although, now with Spring Security Core I have to use the channel. So the following solution to the problem

 action: "confirmDelete|delete" 
+5
source

All Articles