Browse Source

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

closed-social-glitch-2
Eugen Rochko 2 years ago
committed by GitHub
parent
commit
5a48bf1085
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/controllers/oauth/tokens_controller.rb

+ 2
- 1
app/controllers/oauth/tokens_controller.rb 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

Loading…
Cancel
Save