]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/user_preferences_controller.rb
Merge pull request #5158 from tomhughes/vagrant-debian
[rails.git] / app / controllers / api / user_preferences_controller.rb
index 99d224c516ca5ec132f1ce236acea4ce3774fd3f..d1bd6d6242bc5713ce28054630e26341f711bc28 100644 (file)
@@ -1,12 +1,11 @@
 # Update and read user preferences, which are arbitrary key/val pairs
 module Api
   class UserPreferencesController < ApiController
+    before_action :check_api_writable, :only => [:update_all, :update, :destroy]
     before_action :authorize
 
     authorize_resource
 
-    around_action :api_call_handle_error
-
     before_action :set_request_formats
 
     ##