Add permission checking to inline editor fields [SCI-3468]

This commit is contained in:
Oleksii Kriuchykhin 2019-05-15 17:47:09 +02:00
parent 039b2f3754
commit 2ef926e795
4 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@
<%= render partial: "shared/secondary_navigation" , locals: {
editable: {
name: 'title',
active: true,
active: can_manage_experiment?(@experiment),
width: 'calc(100% - 500px)',
params_group: 'experiment',
field_to_udpate: 'name',

View file

@ -5,7 +5,7 @@
<%= render partial: "shared/secondary_navigation", locals: {
editable: {
name: 'title',
active: true,
active: can_manage_module?(@my_module),
width: 'calc(100% - 580px)',
params_group: 'my_module',
field_to_udpate: 'name',

View file

@ -3,7 +3,7 @@
<%= render partial: "shared/secondary_navigation", locals: {
editable: {
name: 'title',
active: true,
active: can_manage_project?(@project),
width: 'calc(100% - 500px)',
params_group: 'project',
field_to_udpate: 'name',