X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eece15be74cf66b0c47be5b4f00e622184ea680d..f2e302c6a8c57b6f1902c7bf869b185b0a7f25d5:/app/controllers/api/user_preferences_controller.rb diff --git a/app/controllers/api/user_preferences_controller.rb b/app/controllers/api/user_preferences_controller.rb index 99d224c51..cb852ce88 100644 --- a/app/controllers/api/user_preferences_controller.rb +++ b/app/controllers/api/user_preferences_controller.rb @@ -1,6 +1,7 @@ # 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