mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 13:17:35 +00:00
Fix error when trying to revoke OAuth token without supplying a token (#18205)
This commit is contained in:
parent
6da648227e
commit
5a48bf1085
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
class Oauth::TokensController < Doorkeeper::TokensController
|
class Oauth::TokensController < Doorkeeper::TokensController
|
||||||
def revoke
|
def revoke
|
||||||
unsubscribe_for_token if authorized? && token.accessible?
|
unsubscribe_for_token if token.present? && authorized? && token.accessible?
|
||||||
|
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue