app/models/concerns/memberships/base.rb in bullet_train-1.0.93 vs app/models/concerns/memberships/base.rb in bullet_train-1.0.95

- old
+ new

@@ -60,11 +60,11 @@ def unclaimed? user.nil? && !invitation.nil? end def tombstone? - user.nil? && invitation.nil? + user.nil? && invitation.nil? && !platform_agent? end def last_admin? return false unless admin? return false unless user.present? @@ -135,7 +135,11 @@ # TODO utilize this. # members shouldn't receive notifications unless they are either an active user or an outstanding invitation. def should_receive_notifications? invitation.present? || user.present? + end + + def platform_agent? + platform_agent_of_id.present? end end