Skip to content

Commit

Permalink
fix: coherence within associations fields authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Feb 24, 2025
1 parent 361e98b commit 92e94d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<% else %>
<%= render Avo::PanelComponent.new(name: @field.name) do |c| %>
<% c.with_tools do %>
<% if !@field.is_readonly? && !@field.is_disabled? && can_attach? %>
<% if can_attach? %>
<%= a_link attach_path,
icon: 'heroicons/outline/link',
color: :primary,
Expand All @@ -17,7 +17,7 @@
<%= t('avo.attach_item', item: @field.name.humanize(capitalize: false)) %>
<% end %>
<% end %>
<% if !@field.is_readonly? && !@field.is_disabled? && can_see_the_create_button? %>
<% if can_see_the_create_button? %>
<%= a_link create_path,
icon: 'heroicons/outline/plus',
'data-target': 'create',
Expand Down

0 comments on commit 92e94d7

Please sign in to comment.