Skip to content

Commit

Permalink
Render action controls without adding to actions method (#2968)
Browse files Browse the repository at this point in the history
  • Loading branch information
binarygit authored Jul 17, 2024
1 parent 7c55205 commit 014241a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/components/avo/resource_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ def can_see_the_destroy_button?
end

def can_see_the_actions_button?
return false if @actions.blank?

return authorize_association_for(:act_on) if @reflection.present?

@resource.authorization.authorize_action(:act_on, raise_exception: false) && !has_reflection_and_is_read_only
Expand Down

0 comments on commit 014241a

Please sign in to comment.