diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb
index <HASH>..<HASH> 100644
--- a/config/initializers/doorkeeper.rb
+++ b/config/initializers/doorkeeper.rb
@@ -19,7 +19,7 @@ Doorkeeper.configure do
   # called in the ApplicationsController by `before_action :authenticate_admin!`
   admin_authenticator do
     user = authenticate_resource_owner!
-    if Gemcutter.admins.include? user.email
+    if Gemcutter.admins.include? user.try(:email)
       user
     else
       fail Doorkeeper::Errors::DoorkeeperError, 'Not an admin'
authenticate_resource_owner sometimes redirects, so don't always assume it's a User