Skip to content

Instantly share code, notes, and snippets.

@mstine
Created November 10, 2009 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstine/231142 to your computer and use it in GitHub Desktop.
Save mstine/231142 to your computer and use it in GitHub Desktop.
import org.codehaus.groovy.grails.plugins.springsecurity.Secured
@Secured(['ROLE_ADMIN'])
class ProductController {
//...
}
@Secured(['ROLE_ADMIN'])
def create = {
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment