]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Merge remote-tracking branch 'upstream/pull/5022'
[rails.git] / app / controllers / api_controller.rb
index ff7f694c5eb63bac0ac23c7e00ba454630f7ac69..ae1bc87554e0e0b1da81debd07cf7296df80d2d1 100644 (file)
@@ -112,6 +112,7 @@ class ApiController < ApplicationController
         # self.current_user setup by OAuth
       else
         report_error t("application.oauth_10a_disabled", :link => t("application.auth_disabled_link")), :forbidden
         # self.current_user setup by OAuth
       else
         report_error t("application.oauth_10a_disabled", :link => t("application.auth_disabled_link")), :forbidden
+        self.current_user = nil
       end
     else
       username, passwd = auth_data # parse from headers
       end
     else
       username, passwd = auth_data # parse from headers