lib/rich/cms/content/item.rb in rich_cms-3.0.1 vs lib/rich/cms/content/item.rb in rich_cms-3.0.2
- old
+ new
@@ -64,10 +64,10 @@
attrs << options[:html].collect{|k, v| "#{k}=\"#{::ERB::Util.html_escape v}\""}.join(" ") if options[:html]
tag = options[:tag] || @group.tag || (%w(text html).include?(options[:as].to_s.downcase) ? :div : :span)
- if options[:tag] == :none && !Auth.can_edit?(@object)
+ if options[:tag] == :none
"#{value.blank? ? default : value}"
else
# Make default for editable
tag = :span if tag == :none
"<#{tag} #{attrs.join(" ")}>#{value.blank? ? default : value}</#{tag}>".html_safe