Skip to content

Commit

Permalink
Update mhv_messaging_policy.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksii-morgun committed Jan 10, 2025
1 parent b96a7a9 commit 3ca1b2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/policies/mhv_messaging_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Check failure on line 8 in app/policies/mhv_messaging_policy.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Rails/Output: Do not write to stdout. Use Rails's logger if you want to log.
return false unless user.mhv_correlation_id

client = SM::Client.new(session: { user_id: user.mhv_correlation_id })
Expand Down

0 comments on commit 3ca1b2e

Please sign in to comment.