X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1ce8368f64dda8c11243412229c882dbb7f4e528..441b92c3c33cf79c2bac977cf0b3cf2c3e7e010e:/app/controllers/oauth_controller.rb diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index 98075b8f8..4b539b1fd 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -38,7 +38,7 @@ class OauthController < ApplicationController def oauthorize @token = RequestToken.find_by_token params[:oauth_token] - unless @token.invalidated? + unless @token.nil? or @token.invalidated? if request.post? any_auth = false @token.client_application.permissions.each do |pref|