includes/namespaces/default.php
changeset 1332 12286b3ee214
parent 1292 0e2e476e90e8
child 1343 2a31905a567d
--- a/includes/namespaces/default.php	Wed Dec 29 13:23:58 2010 -0500
+++ b/includes/namespaces/default.php	Wed Dec 29 13:25:32 2010 -0500
@@ -730,7 +730,10 @@
 			$html .= '</tr></table></div>' . "\n\n";
 		}
 		
-		if ( $this->namespace != 'Special' && $this->namespace != 'Admin' )
+		// FIXME check_acl_scope here may not be a great idea... if there's no way to ever edit categorization OR tags for
+		// a given namespace because the permsissions don't allow for it, don't display the box at all.
+		if ( $this->namespace != 'Special' && $this->namespace != 'Admin'  &&
+				($session->check_acl_scope('edit_cat', $this->namespace) || $session->check_acl_scope('tag_create', $this->namespace)) )
 		{
 			$html .= '<div class="mdg-comment" style="margin: 10px 0 0 0;" id="category_box_wrapper">';
 			$html .= '<div style="float: right;">';