// Give message to administration what happened here.
thrownewPermissionDeniedException(securitybean,getSessionhandler().getUser(),"User "+getSessionhandler().getUser()+" does not have permission to modify role!");
}
roleBean.mergeChanges(role);
return"roleSaved";
}
publicStringcreate(){
if(!sessionhandler.canWrite("roleManagement")){
// Give message to administration what happened here.
thrownewPermissionDeniedException(securitybean,getSessionhandler().getUser(),"User "+getSessionhandler().getUser()+" does not have permission to create role!");