diff --git a/app/controllers/users/private_message_details_controller.rb b/app/controllers/users/private_message_details_controller.rb index 8e7b31212..3a8f4e7fc 100644 --- a/app/controllers/users/private_message_details_controller.rb +++ b/app/controllers/users/private_message_details_controller.rb @@ -1,4 +1,5 @@ class Users::PrivateMessageDetailsController < Users::BaseController + before_action :require_login before_action :private_user_resources! after_action :update_message_status, only: [:show] diff --git a/app/controllers/users/private_messages_controller.rb b/app/controllers/users/private_messages_controller.rb index 3a5635ef7..4f02b136f 100644 --- a/app/controllers/users/private_messages_controller.rb +++ b/app/controllers/users/private_messages_controller.rb @@ -1,4 +1,5 @@ class Users::PrivateMessagesController < Users::BaseController + before_action :require_login before_action :private_user_resources! after_action :update_onclick_time!, only: [:index]