]> cat aescling's git repositories - mastodon.git/commitdiff
Fix doorkeeper skip_authorization
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 2 Oct 2016 20:55:09 +0000 (22:55 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 2 Oct 2016 20:55:09 +0000 (22:55 +0200)
config/initializers/doorkeeper.rb

index 646b12e4673e4a3c3cd4236f129b182e7c64c4a5..97eaea6785a1b909405025c9e80c4bd962acf610 100644 (file)
@@ -101,7 +101,7 @@ Doorkeeper.configure do
   # so that the user skips the authorization step.
   # For example if dealing with a trusted application.
   skip_authorization do |resource_owner, client|
-    client.superapp?
+    client.application.superapp?
   end
 
   # WWW-Authenticate Realm (default "Doorkeeper").