app/models/pageflow/membership.rb in pageflow-16.0.0 vs app/models/pageflow/membership.rb in pageflow-16.1.0

- old
+ new

@@ -36,11 +36,12 @@ end private def account_membership_exists - errors[:base] << 'Entry Membership misses presupposed Membership on account of entry' if - user.present? && !user.accounts.include?(entity.account) + return if user.blank? || user.accounts.include?(entity.account) + + errors.add(:base, 'Entry Membership misses presupposed Membership on account of entry') end def on_entry? entity_type == 'Pageflow::Entry' end