mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 19:48:18 +08:00
Fix sample's custom column permissions [SCI-2135]
This commit is contained in:
parent
bb21f6543c
commit
b5eb821cfa
1 changed files with 1 additions and 3 deletions
|
@ -98,9 +98,7 @@ end
|
||||||
Canaid::Permissions.register_for(CustomField) do
|
Canaid::Permissions.register_for(CustomField) do
|
||||||
# sample: update/delete field
|
# sample: update/delete field
|
||||||
can :manage_sample_column do |user, custom_field|
|
can :manage_sample_column do |user, custom_field|
|
||||||
custom_field.sample_custom_fields.all? do |sample_custom_field|
|
can_create_sample_columns?(user, custom_field.team)
|
||||||
can_create_sample_columns?(user, sample_custom_field.sample)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue