Posted By

lucastex on 03/17/09


Tagged

groovy grails acegi bootstrap


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sfhynx


Adding Permissions to Bootstrap.groovy


 / Published in: Groovy
 

  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  

You need to login to post a comment.