app/models/locomotive/editable_element.rb in locomotive_cms-2.0.2 vs app/models/locomotive/editable_element.rb in locomotive_cms-2.0.3
- old
+ new
@@ -31,9 +31,10 @@
def disabled?
!!self.disabled # the original method does not work quite well with the localization
end
def disabled_in_all_translations?
+ return self.disabled_translations if self.disabled_translations.is_a?(Boolean)
self.disabled_translations.all? { |_, v| v == true }
end
# Determines if the current element can be edited in the back-office
#