logger.info("Fetching roles. Found {}",items.getRowCount());
...
...
@@ -40,9 +45,33 @@ public class RoleView {
returnitems;
}
publicStringsave(){
if(!sessionhandler.canWrite("roleManagement")){
// 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!");