X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9d739b3d5b0450ea1a24dd86c5e15477866c0a41..11806a676fb88f51ece004b7c05bde38f1e77706:/app/controllers/user_preferences_controller.rb?ds=sidebyside diff --git a/app/controllers/user_preferences_controller.rb b/app/controllers/user_preferences_controller.rb index 0aa2e8d52..915c847de 100644 --- a/app/controllers/user_preferences_controller.rb +++ b/app/controllers/user_preferences_controller.rb @@ -2,8 +2,9 @@ class UserPreferencesController < ApplicationController skip_before_action :verify_authenticity_token before_action :authorize - before_action :require_allow_read_prefs, :only => [:read_one, :read] - before_action :require_allow_write_prefs, :except => [:read_one, :read] + + authorize_resource + around_action :api_call_handle_error ##