Adding Permissions to Bootstrap.groovy


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



Copy this code and paste it in your HTML
  1. def secureUserEdit = new RequestMap(url: '/user/edit', configAttribute:'ROLE_ADMIN').save()
  2. def secureUserSave = new RequestMap(url: '/user/save', configAttribute:'ROLE_ADMIN').save()
  3. def secureUserCreate = new RequestMap(url: '/user/create', configAttribute:'ROLE_ADMIN').save()
  4. def secureUserList = new RequestMap(url: '/user/list', configAttribute:'ROLE_ADMIN, ROLE_USER').save()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.