Use grails.plugins.springsecurity.controllerAnnotations.staticRulesinstead of editing or overriding controllers to add security. This is usually used for static resources such as javascript, but it is good for controllers that you cannot (or should not) edit.
You can also switch to one of the other two mechanisms (database query templates or a static map in Config.groovy), but I prefer annotations as they store security information along with the affected code.
source
share