Posted By

lucastex on 03/17/09


groovy grails acegi bootstrap

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Adding Roles to Bootstrap.groovy

 / Published in: Groovy

  1. //Adding Roles
  2. def roleAdmin = new Role(authority:'ROLE_ADMIN', description:'App admin').save()
  3. def roleUser = new Role(authority:'ROLE_USER', description:'App user').save()

Report this snippet  

You need to login to post a comment.