Grails filter multiple actions
Within one filter, how can I match more than one action of the same controller?
def filters = {
organisationDelete(controller: "organisation", action:开发者_开发百科 "confirmDelete, delete") {
//...
}
}
In this mapping I have "confirmDelete" as a GET and "delete" as POST
in the old ACEGI plugin I could write the actions separated by comma. Though, now with Spring Security Core I have to use a pipe. So, the following solves the problem
action: "confirmDelete|delete"
精彩评论