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')