mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Add permission checking to inline editor fields [SCI-3468]
This commit is contained in:
parent
039b2f3754
commit
2ef926e795
4 changed files with 6 additions and 6 deletions
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue