开发者

Grails filter multiple actions

开发者 https://www.devze.com 2023-04-08 08:28 出处:网络
Within one filter, how can I match more than one action of the same controller? def filters = { organisationDelete(controller: \"organisation\", action:开发者_开发百科 \"confirmDelete, delete\") {

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

精彩评论

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

关注公众号