lib/fiona7/scrivito_user.rb in infopark_fiona7-0.71.1.0 vs lib/fiona7/scrivito_user.rb in infopark_fiona7-0.71.1.1
- old
+ new
@@ -34,9 +34,11 @@
#
user_definition.restrict_obj_publish(using: :_path) do |path|
obj = Fiona7::WriteObj.find_by_path(path)
if !obj || !obj.permission.release?(rsession_user.user_name)
I18n.t(:"fiona7.publish_permission_resticted", path: path)
+ elsif obj && !obj.valid?(:release)
+ obj.errors.join("\n")
end
end
end
end
end