From 3ca1b2ee7f3ed8329e00bbf6ea57b6f1302844e7 Mon Sep 17 00:00:00 2001 From: Alex Morgun <87077843+oleksii-morgun@users.noreply.github.com> Date: Fri, 10 Jan 2025 11:14:21 -0500 Subject: [PATCH] Update mhv_messaging_policy.rb --- app/policies/mhv_messaging_policy.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/policies/mhv_messaging_policy.rb b/app/policies/mhv_messaging_policy.rb index 83dcb6c6fa3..762fd11b11b 100644 --- a/app/policies/mhv_messaging_policy.rb +++ b/app/policies/mhv_messaging_policy.rb @@ -4,6 +4,8 @@ MHVMessagingPolicy = Struct.new(:user, :mhv_messaging) do def access? + Rails.logger.info('SM ACCESS ATTEMPT IN MOBILE POLICY with id: ', user.mhv_correlation_id) + puts "SM ACCESS ATTEMPT IN MOBILE POLICY with id: #{user.mhv_correlation_id}" return false unless user.mhv_correlation_id client = SM::Client.new(session: { user_id: user.mhv_correlation_id })