Browse Source

Fixed issue #602 - Admin user login via Oauth.

Martin Edenhofer 8 years ago
parent
commit
d36570aef0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/controllers/application_controller.rb

+ 1 - 0
app/controllers/application_controller.rb

@@ -176,6 +176,7 @@ class ApplicationController < ActionController::Base
 
   def user_device_log(user, type)
     switched_from_user_id = ENV['SWITCHED_FROM_USER_ID'] || session[:switched_from_user_id]
+    return true if params[:controller] == 'init' # do no device logging on static inital page
     return true if switched_from_user_id
     return true if !user
     return true if !user.permissions?('user_preferences.device')