Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Jun 28, 2024
1 parent 8a22a38 commit 0e226a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/avo/current.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ def request
end

def user_is_admin?
return false unless user && user.respond_to?(Avo.configuration.is_admin_method)
return false unless user&.respond_to?(Avo.configuration.is_admin_method)

user.send(Avo.configuration.is_admin_method)
end

def user_is_developer?
return false unless user && user.respond_to?(Avo.configuration.is_developer_method)
return false unless user&.respond_to?(Avo.configuration.is_developer_method)

user.send(Avo.configuration.is_developer_method)
end
Expand Down

0 comments on commit 0e226a4

Please sign in to comment.