开发者

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" 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜