Adding Roles to Bootstrap.groovy

/ Published in: Groovy
Save to your folder(s)

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.