lib/fiona7/builder/obj_updater.rb in infopark_fiona7-1.5.2.1.0.pre.beta1 vs lib/fiona7/builder/obj_updater.rb in infopark_fiona7-1.5.3.2.0.pre.beta1
- old
+ new
@@ -32,10 +32,16 @@
@obj_class = Fiona7::ObjClassNameDemangler.new(@real_obj_class).demangle
end
ensure_obj_class_exists
- @obj.name = @name unless @name.blank?
+ # NOTE: name is an object attribute and not content attribute
+ # changing content attributes requires permissionWrite
+ # but changing the name attribute requires permissionRoot
+ #
+ # setting the name without changing the value counts
+ # as changing the name attribute for the CM
+ @obj.name = @name if !@name.blank? && @name != @obj.name
# TODO: move (parent change)
end
end
end