Skip to content

Commit 7f73c82

Browse files
authored
Merge pull request #2325 from seek4science/2321-default-permissions-not-inherited-at-isa-study-level
2321 default permissions not inherited at isa study level
2 parents 9dbaffc + bf432b0 commit 7f73c82

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

app/views/isa_studies/_form.html.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434

3535
<%= render :partial=> "assets/discussion_links_form", :locals=>{:resource => @isa_study.study} -%>
3636

37-
<%= render partial: 'projects/implicit_project_selector', locals: { action: action,
38-
select_id: '#study_investigation_id',
39-
parents: Investigation.authorized_for('edit') } %>
4037

4138
<%= folding_panel("Define #{t(:sample_type)} for Source") do %>
4239
<%= render partial: 'sample_types_form', locals: {f: f, sample_type: @isa_study.source, id_suffix: "_source_sample_type", action: action } if @isa_study.source %>
@@ -55,11 +52,14 @@
5552

5653
<% end -%>
5754

55+
<%= form_submit_buttons(@isa_study.study) %>
5856

57+
<%= render partial: 'projects/implicit_project_selector', locals: { action: action,
58+
select_id: '#isa_study_study_investigation_id',
59+
parents: Investigation.authorized_for('edit'),
60+
skip_on_page_load: true} %>
5961

6062

61-
<%= form_submit_buttons(@isa_study.study) %>
62-
6363
<script>
6464
const templates = <%= load_templates().to_json.html_safe %>
6565
const initTemplateModal = function(field_name) {

app/views/studies/_buttons.html.erb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020

2121
<% if item.can_edit? -%>
2222
<% if Seek::Config.isa_json_compliance_enabled && item.is_isa_json_compliant? %>
23-
<% if item&.sample_types.present? %>
24-
<%= button_link_to("Design #{t('assays.assay_stream')}", 'new', new_isa_assay_path(study_id: item.id, single_page: params[:single_page], is_assay_stream: true)) %>
25-
<% end -%>
23+
<%= button_link_to("Design #{t('assays.assay_stream')}", 'new', new_isa_assay_path(study_id: item.id, single_page: params[:single_page], is_assay_stream: true)) %>
2624
<% else -%>
2725
<%= add_new_item_to_dropdown(item) %>
2826
<% end -%>

0 commit comments

Comments
 (0)