Hi,
I'm using Jsecurity plugins on Grails and I would like to know how to setup permission for each page from the database if possible.
it's like to store the following rules:
/home/edit/* for Admin /home/*
for Users /administrator/* for Admin /menu/* for Admin, Staff Admin
etc ...
at the moment, we did it in the conf/SecurityFilters.groovy like the following
menuEditing(controller:"menu"){
before = {
accessControl {
role("Administrator");
}
}
}
is it possible to store the rules on database instead of writing on Security Filters ?
ps: i think jsecurity changes its name to Apahce Shiro link text