Skip to content
Snippets Groups Projects
Commit 61a7f4e2 authored by juanf's avatar juanf
Browse files

SSDM-1944 : hide creation of certain sample/experiment types from users

SVN: 34313
parent cbdaffd0
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ function ExperimentFormView(experimentFormController, experimentFormModel) {
if(this._experimentFormModel.mode !== FormMode.CREATE) {
//Add Experiment Step
if(profile.getSampleTypeForSampleTypeCode("EXPERIMENTAL_STEP")) {
if(profile.getSampleTypeForSampleTypeCode("EXPERIMENTAL_STEP") && !profile.isSampleTypeHidden("EXPERIMENTAL_STEP")) {
$formTitle.append(" ");
$formTitle.append(FormUtil.getButtonWithText("Create Exp. Step", function() {
var argsMap = {
......
......@@ -29,8 +29,10 @@ function SampleTableView(sampleTableController, sampleTableModel) {
var experimentCode = this._sampleTableModel.experimentIdentifier.split("/")[3];
var sampleTypeCode = experimentCode.substring(0,experimentCode.indexOf("_COLLECTION"));
//Add Experiment Step
if(profile.getSampleTypeForSampleTypeCode(sampleTypeCode)) {
//Add Sample Type
if(profile.getSampleTypeForSampleTypeCode(sampleTypeCode) &&
!profile.isSampleTypeHidden(sampleTypeCode)) {
$title.append(" ");
$title.append(FormUtil.getButtonWithText("Create " + sampleTypeCode, function() {
var argsMap = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment