ZeroUser selectedUser = ((DefaultTableModel<ZeroUser>) userListComponent.getModel()).get(row);
if (selectedUser != null) {
if (!user.checkAuthorisation(
new Permission(UserModule.AUTH_USER, selectedUser.getUserGroup().getGroupKey()),
new Permission(UserModule.AUTH_USER_EDIT, "", false))) {
view.setMessage(new Message("zero.message.user.delete_no_permission", Message.MSG_ERROR, selectedUser.getUsername()));
return new ModelAndView(view, null);
}
} else {
log.debug("username not found");
}