Browse Source

! Quick reply might be permanently on, but there's no need to show it if the user doesn't have permission to see it.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 years ago
parent
commit
caa02ee8db
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Themes/default/Display.template.php

+ 7 - 1
Themes/default/Display.template.php

@@ -222,7 +222,9 @@ function template_main()
 	echo '
 			<div class="plainbox" id="display_jump_to">&nbsp;</div>';
 
-	echo '
+	if ($context['can_reply'])
+	{
+		echo '
 			<a id="quickreply"></a>
 			<div class="tborder" id="quickreplybox">
 				<div class="cat_bar">
@@ -329,6 +331,10 @@ function template_main()
 					</div>
 				</div>
 			</div>';
+	}
+	else
+		echo '
+			<br class="clear" />';
 
 	// draft autosave available and the user has it enabled?
 	if (!empty($context['drafts_autosave']) && !empty($options['drafts_autosave_enabled']))