app/models/alchemy/page/page_scopes.rb in alchemy_cms-4.3.2 vs app/models/alchemy/page/page_scopes.rb in alchemy_cms-4.4.0

- old
+ new

@@ -15,10 +15,10 @@ # scope :layoutpages, -> { where(layoutpage: true) } # All locked pages # - scope :locked, -> { where.not(locked_at: nil, locked_by: nil) } + scope :locked, -> { where.not(locked_at: nil).where.not(locked_by: nil) } # All pages locked by given user # scope :locked_by, ->(user) { if user.class.respond_to? :primary_key