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