mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
994e9c5c5b
4 changed files with 14 additions and 0 deletions
|
@ -170,6 +170,12 @@ class ucp_pm
|
|||
trigger_error('NO_AUTH_READ_MESSAGE');
|
||||
}
|
||||
|
||||
if ($view == 'print' && (!$config['print_pm'] || !$auth->acl_get('u_pm_printpm')))
|
||||
{
|
||||
send_status_line(403, 'Forbidden');
|
||||
trigger_error('NO_AUTH_PRINT_MESSAGE');
|
||||
}
|
||||
|
||||
// Do not allow hold messages to be seen
|
||||
if ($folder_id == PRIVMSGS_HOLD_BOX)
|
||||
{
|
||||
|
|
|
@ -377,6 +377,7 @@ $lang = array_merge($lang, array(
|
|||
'NO_AUTH_PROFILEINFO' => 'You are not authorised to change your profile information.',
|
||||
'NO_AUTH_READ_HOLD_MESSAGE' => 'You are not authorised to read private messages that are on hold.',
|
||||
'NO_AUTH_READ_MESSAGE' => 'You are not authorised to read private messages.',
|
||||
'NO_AUTH_PRINT_MESSAGE' => 'You are not authorised to print private messages.',
|
||||
'NO_AUTH_READ_REMOVED_MESSAGE' => 'You are not able to read this message because it was removed by the author.',
|
||||
'NO_AUTH_SEND_MESSAGE' => 'You are not authorised to send private messages.',
|
||||
'NO_AUTH_SIGNATURE' => 'You are not authorised to define a signature.',
|
||||
|
|
|
@ -88,6 +88,7 @@ $lang = array_merge($lang, array(
|
|||
'NO_UNREAD_POSTS' => 'There are no new unread posts for this topic.',
|
||||
'NO_VOTE_OPTION' => 'You must specify an option when voting.',
|
||||
'NO_VOTES' => 'No votes',
|
||||
'NO_AUTH_PRINT_TOPIC' => 'You are not authorised to print topics.',
|
||||
|
||||
'POLL_ENDED_AT' => 'Poll ended at %s',
|
||||
'POLL_RUN_TILL' => 'Poll runs till %s',
|
||||
|
|
|
@ -342,6 +342,12 @@ if (($topic_data['topic_type'] != POST_NORMAL) && $topic_data['topic_time_limit'
|
|||
// Setup look and feel
|
||||
$user->setup('viewtopic', $topic_data['forum_style']);
|
||||
|
||||
if ($view == 'print' && !$auth->acl_get('f_print', $forum_id))
|
||||
{
|
||||
send_status_line(403, 'Forbidden');
|
||||
trigger_error('NO_AUTH_PRINT_TOPIC');
|
||||
}
|
||||
|
||||
$overrides_f_read_check = false;
|
||||
$overrides_forum_password_check = false;
|
||||
$topic_tracking_info = isset($topic_tracking_info) ? $topic_tracking_info : null;
|
||||
|
|
Loading…
Add table
Reference in a new issue