diff options
-rw-r--r-- | phpBB/includes/ucp/ucp_pm.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php index 447b6ebe87..2a718c0701 100644 --- a/phpBB/includes/ucp/ucp_pm.php +++ b/phpBB/includes/ucp/ucp_pm.php @@ -272,6 +272,12 @@ class ucp_pm $folder_id = (int) $row['folder_id']; } + // Do not allow hold messages to be seen + if ($folder_id == PRIVMSGS_HOLD_BOX) + { + trigger_error('NO_AUTH_READ_HOLD_MESSAGE'); + } + $message_row = array(); if ($action == 'view_message' && $msg_id) { |