From d36570aef0dd194c3ba92a50e62da69507136a5f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 10 Jan 2017 20:58:33 +0100 Subject: [PATCH] Fixed issue #602 - Admin user login via Oauth. --- app/controllers/application_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8c15eee59..9e553125c 100644 --- a/app/controllers/application_controller.rb +++ b/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')