]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Check the oauth token and then use the capabilities directly
[rails.git] / app / models / relation.rb
index d5117b7c3146a426ff471594916a8b3c2b0138a8..202db12daa66479f379c4aeb84e49122279b1991 100644 (file)
@@ -381,7 +381,7 @@ class Relation < ActiveRecord::Base
       # reasonable on the assumption that adding or removing members doesn't
       # materially change the rest of the relation.
       any_relations =
-        changed_members.collect { |_id, type| type == "relation" }
+        changed_members.collect { |type, _id, _role| type == "Relation" }
                        .inject(false) { |acc, elem| acc || elem }
 
       update_members = if tags_changed || any_relations