X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f5af8befa9ffe0c95f4a3c58d2fbb63a2e971ab0..03867e2fee60ffbfca44fc971605272d4d04582f:/app/controllers/api_controller.rb diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index bcd43a273..0fe1ba18d 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -82,8 +82,6 @@ class ApiController < ApplicationController if doorkeeper_token set_locale report_error t("oauth.permissions.missing"), :forbidden - elsif current_user - head :forbidden else head :unauthorized end