Skip to content

Commit

Permalink
Call the super method for push? on events and relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt committed Nov 30, 2023
1 parent 0187cdd commit e9049b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/userlist/push/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def occured_at
end

def push?
(user.nil? || user.push?) && (company.nil? || company.push?)
super && (user.nil? || user.push?) && (company.nil? || company.push?)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/userlist/push/relationship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def url
end

def push?
user&.push? && company&.push?
super && user&.push? && company&.push?
end
end
end
Expand Down

0 comments on commit e9049b0

Please sign in to comment.