Hide the post box if we can't reply to a ticket. Fixes #150 (#153)
Jeremy D

Jeremy D commited on 2021-12-24 15:00:56
Showing 1 changed files, with 4 additions and 0 deletions.

... ...
@@ -623,6 +623,10 @@ function template_quickreply()
623 623
 {
624 624
 	global $context, $scripturl, $options, $txt, $settings;
625 625
 
626
+	// If you can't reply, skip this.
627
+	if (!$context['can_reply'])
628
+		return;
629
+
626 630
 	echo '
627 631
 		<div class="title_bar" id="quickreplyheader">
628 632
 			<h3 class="titlebg">
629 633