1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

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

This commit is contained in:
Eugen Rochko 2022-05-01 00:51:32 +02:00 committed by GitHub
parent 6da648227e
commit 5a48bf1085
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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