Skip to content

Commit 0cbf91b

Browse files
authored
Hide the post box if we can't reply to a ticket. Fixes #150 (#153)
1 parent 3f448a1 commit 0cbf91b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sd_template/SimpleDesk-Display.template.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,10 @@ function template_quickreply()
623623
{
624624
global $context, $scripturl, $options, $txt, $settings;
625625

626+
// If you can't reply, skip this.
627+
if (!$context['can_reply'])
628+
return;
629+
626630
echo '
627631
<div class="title_bar" id="quickreplyheader">
628632
<h3 class="titlebg">

0 commit comments

Comments
 (0)