File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
sormas-ui/src/main/java/de/symeda/sormas/ui/caze Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -254,11 +254,12 @@ protected void initView(String params) {
254
254
layout .addSidePanelComponent (new SideComponentLayout (specialAccessListComponent ), SPECIAL_ACCESSES_LOC );
255
255
}
256
256
257
- SelfReportListComponent selfReportListComponent =
258
- new SelfReportListComponent (SelfReportType .CASE , new SelfReportCriteria ().setCaze (new CaseReferenceDto (caze .getUuid ())));
259
- SelfReportListComponentLayout selfReportListComponentLayout = new SelfReportListComponentLayout (selfReportListComponent );
260
- layout .addSidePanelComponent (selfReportListComponentLayout , SELF_REPORT_LOC );
261
-
257
+ if (UiUtil .permitted (FeatureType .SELF_REPORTING )) {
258
+ SelfReportListComponent selfReportListComponent =
259
+ new SelfReportListComponent (SelfReportType .CASE , new SelfReportCriteria ().setCaze (new CaseReferenceDto (caze .getUuid ())));
260
+ SelfReportListComponentLayout selfReportListComponentLayout = new SelfReportListComponentLayout (selfReportListComponent );
261
+ layout .addSidePanelComponent (selfReportListComponentLayout , SELF_REPORT_LOC );
262
+ }
262
263
if (UiUtil .permitted (FeatureType .SURVEYS )) {
263
264
SurveyListComponentLayout surveyList = new SurveyListComponentLayout (
264
265
caze .toReference (),
You can’t perform that action at this time.
0 commit comments