]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/permissions_controller.rb
Merge remote-tracking branch 'upstream/pull/5106'
[rails.git] / app / controllers / api / permissions_controller.rb
index 73b84f8edf341933483a9ee68341f9a2ec94b984..717bbfa6f7fd1c23428c9d952b1e18d55ef5032b 100644 (file)
@@ -2,8 +2,8 @@ module Api
   class PermissionsController < ApiController
     authorize_resource :class => false
 
-    before_action :check_api_readable
     before_action :setup_user_auth
+    before_action :set_request_formats
     around_action :api_call_handle_error, :api_call_timeout
 
     # External apps that use the api are able to query which permissions
@@ -21,6 +21,11 @@ module Api
                      else
                        []
                      end
+
+      respond_to do |format|
+        format.xml
+        format.json
+      end
     end
   end
 end