]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/api_ability.rb
Rename api element version action to show
[rails.git] / app / abilities / api_ability.rb
index 0eae46f824294aab6a703987cc80a3d2091c9768..8ee280b3a116d2f464c9114b1c65f47b45d50d39 100644 (file)
@@ -17,9 +17,7 @@ class ApiAbility
       can [:index, :show], Node
       can [:index, :show, :full, :ways_for_node], Way
       can [:index, :show, :full, :relations_for_node, :relations_for_way, :relations_for_relation], Relation
-      can [:history, :version], OldNode
-      can [:history, :version], OldWay
-      can [:history, :version], OldRelation
+      can [:history, :show], [OldNode, OldWay, OldRelation]
       can [:show], UserBlock
 
       if user&.active?