]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/changeset_comments_controller.rb
Simplify deny_access handling
[rails.git] / app / controllers / api / changeset_comments_controller.rb
index 9ecd22b456493dde5e2efcca96df383fb63e9d3d..21c854139c9bf9d684183461650be60af8c9ee12 100644 (file)
@@ -1,8 +1,6 @@
 module Api
-  class ChangesetCommentsController < ApplicationController
-    skip_before_action :verify_authenticity_token
+  class ChangesetCommentsController < ApiController
     before_action :authorize
-    before_action :api_deny_access_handler
 
     authorize_resource
 
@@ -42,7 +40,7 @@ module Api
 
       # Return a copy of the updated changeset
       @changeset = changeset
-      render "changesets/changeset"
+      render "api/changesets/changeset"
     end
 
     ##
@@ -62,7 +60,7 @@ module Api
 
       # Return a copy of the updated changeset
       @changeset = comment.changeset
-      render "changesets/changeset"
+      render "api/changesets/changeset"
     end
 
     ##
@@ -82,7 +80,7 @@ module Api
 
       # Return a copy of the updated changeset
       @changeset = comment.changeset
-      render "changesets/changeset"
+      render "api/changesets/changeset"
     end
   end
 end