{
String reportName = action.substring(Constants.VIEW_REPORT_PREFIX.length());
Map<String, Object> report = reportConfig.getReport(reportName);
if (report != null)
{
Role reportRole = Role.valueOf((String)report.get(Constants.ROLE));
isAuthorized = user.getRoles().contains(reportRole);
}
}
}