about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-02 22:55:09 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-02 22:55:09 +0200
commitf06f295890bd8f29607599ad13b9a3f8d6e05381 (patch)
tree71b969b7b82aeb1d5e7a886458e6feb338db900a
parent9fd3d7b6cdb97a8f0f47425a32f34fc5c54b94de (diff)
Fix doorkeeper skip_authorization
-rw-r--r--config/initializers/doorkeeper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb
index 646b12e46..97eaea678 100644
--- a/config/initializers/doorkeeper.rb
+++ b/config/initializers/doorkeeper.rb
@@ -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").