Fix error when trying to revoke OAuth token without supplying a token (#18205)

lolsob-rspec
Eugen Rochko 2022-05-01 00:51:32 +02:00 committed by GitHub
parent 2abc8b035b
commit e05fea8dad
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@
class Oauth::TokensController < Doorkeeper::TokensController
def revoke
unsubscribe_for_token if authorized? && token.accessible?
unsubscribe_for_token if token.present? && authorized? && token.accessible?
super
end