]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/api_ability.rb
Convert api element history actions to versions resources
[rails.git] / app / abilities / api_ability.rb
index 55476ab53f72440f5871b8df3a6419c3fd83c82b..e774f6820df3f364c3d766f1c2bd25129f12a0dc 100644 (file)
@@ -15,8 +15,7 @@ class ApiAbility
       can [:read, :download], Changeset
       can :read, Tracepoint
       can :read, User
-      can :read, [Node, Way, Relation]
-      can [:history, :read], [OldNode, OldWay, OldRelation]
+      can :read, [Node, Way, Relation, OldNode, OldWay, OldRelation]
       can :read, UserBlock
 
       if user&.active?