@Override
public OperationCompletionRS updateDashboard(UpdateDashboardRQ rq, String dashboardId, String userName, String projectName) {
StringBuilder additionalInfo = new StringBuilder();
Dashboard dashboard = dashboardRepository.findOne(dashboardId);
expect(dashboard, notNull()).verify(DASHBOARD_NOT_FOUND, dashboardId);
<BUG>AclUtils.validateOwner(dashboard.getAcl(), userName, dashboard.getName());
expect(dashboard.getProjectName(), equalTo(projectName)).verify(ACCESS_DENIED);</BUG>
ofNullable(rq.getName()).ifPresent(it -> {
Dashboard isExist = dashboardRepository.findOneByUserProject(userName, projectName, rq.getName());
if (isExist != null && !dashboardId.equalsIgnoreCase(isExist.getId()))

@Override
public OperationCompletionRS updateDashboard(UpdateDashboardRQ rq, String dashboardId, String userName, String projectName) {
StringBuilder additionalInfo = new StringBuilder();
Dashboard dashboard = dashboardRepository.findOne(dashboardId);
expect(dashboard, notNull()).verify(DASHBOARD_NOT_FOUND, dashboardId);
AclUtils.isAllowedToEdit(dashboard.getAcl(), userName, projectRepository.findProjectRoles(userName), dashboard.getName());
expect(dashboard.getProjectName(), equalTo(projectName)).verify(ACCESS_DENIED);
ofNullable(rq.getName()).ifPresent(it -> {
Dashboard isExist = dashboardRepository.findOneByUserProject(userName, projectName, rq.getName());
if (isExist != null && !dashboardId.equalsIgnoreCase(isExist.getId()))
