Skip to content

Commit 6fe6bad

Browse files
committed
Flow container scope
1 parent 230f619 commit 6fe6bad

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

flow/src/org/labkey/flow/controllers/executescript/AnalysisScriptController.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,12 @@ private SampleIdMap<FlowFCSFile> getSelectedFCSFiles(ImportAnalysisForm form, Er
867867
return null;
868868
}
869869

870+
if (!file.getContainer().equals(getContainer()))
871+
{
872+
errors.reject(ERROR_MSG, "Resolved FCS file '" + file.getName() + "' is not in this folder.");
873+
return null;
874+
}
875+
870876
if (!file.isOriginalFCSFile())
871877
{
872878
errors.reject(ERROR_MSG, "Resolved FCS file '" + file.getName() + "' is a FCS files created from importing an external analysis.");

flow/src/org/labkey/flow/controllers/well/WellController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ public ModelAndView getView(EditWellForm form, boolean reshow, BindException err
305305

306306
for (String wellId : selected)
307307
{
308-
_wells.add(FlowWell.fromWellId(Integer.parseInt(wellId)));
308+
FlowWell well = FlowWell.fromWellId(Integer.parseInt(wellId));
309+
well.checkContainer(getContainer(), getUser(), getActionURL());
310+
_wells.add(well);
309311
}
310312
DataRegionSelection.clearAll(form.getViewContext());
311313
}

0 commit comments

Comments
 (0)