This repository was archived by the owner on May 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
sormas-ui/src/main/java/de/symeda/sormas/ui/caze Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,17 +118,16 @@ protected void initView(String params) {
118118 layout .addComponent (taskList , TASKS_LOC );
119119 }
120120
121- if (FacadeProvider .getFeatureConfigurationFacade ().isFeatureEnabled (FeatureType .SAMPLES_LAB )
122- && UserProvider .getCurrent ().hasUserRight (UserRight .SAMPLE_VIEW )
123- && !caze .checkIsUnreferredPortHealthCase ()) {
124121 boolean externalMessagesEnabled = FacadeProvider .getFeatureConfigurationFacade ().isFeatureEnabled (FeatureType .MANUAL_EXTERNAL_MESSAGES );
125122 if (externalMessagesEnabled && UserProvider .getCurrent ().hasUserRight (UserRight .SEND_MANUAL_EXTERNAL_MESSAGES )) {
126123 SmsListComponent smsList = new SmsListComponent (getCaseRef ());
127124 smsList .addStyleName (CssStyles .SIDE_COMPONENT );
128125 layout .addComponent (smsList , SMS_LOC );
129126 }
130127
131- if (UserProvider .getCurrent ().hasUserRight (UserRight .SAMPLE_VIEW ) && !caze .checkIsUnreferredPortHealthCase ()) {
128+ if (FacadeProvider .getFeatureConfigurationFacade ().isFeatureEnabled (FeatureType .SAMPLES_LAB )
129+ && UserProvider .getCurrent ().hasUserRight (UserRight .SAMPLE_VIEW )
130+ && !caze .checkIsUnreferredPortHealthCase ()) {
132131 VerticalLayout sampleLocLayout = new VerticalLayout ();
133132 sampleLocLayout .setMargin (false );
134133 sampleLocLayout .setSpacing (false );
You can’t perform that action at this time.
0 commit comments