]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/api_ability.rb
Make api show/update/destroy way actions resourceful
[rails.git] / app / abilities / api_ability.rb
index e3ea9e4345a793290ff9e75293d56a5a1bdf43ef..bca6b779bae4a52457e2482bacefd789f7881a1f 100644 (file)
@@ -38,8 +38,8 @@ class ApiAbility
         if user.terms_agreed?
           can [:create, :update, :upload, :close, :subscribe, :unsubscribe], Changeset if scope?(token, :write_api)
           can :create, ChangesetComment if scope?(token, :write_api)
-          can [:create, :update, :destroy], [Node] if scope?(token, :write_api)
-          can [:create, :update, :delete], [Way, Relation] if scope?(token, :write_api)
+          can [:create, :update, :destroy], [Node, Way] if scope?(token, :write_api)
+          can [:create, :update, :delete], [Relation] if scope?(token, :write_api)
         end
 
         if user.moderator?