]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/permissions_controller.rb
Merge remote-tracking branch 'upstream/pull/4483'
[rails.git] / app / controllers / api / permissions_controller.rb
index 07685ed6806546e58a795f7cdb74ba61774e9be5..8c0c949dc2c71302f64b1611f2977961a71d7718 100644 (file)
@@ -1,8 +1,9 @@
 module Api
   class PermissionsController < ApiController
+    before_action :check_api_readable
+
     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