includes/namespaces/default.php
changeset 1332 12286b3ee214
parent 1292 0e2e476e90e8
child 1343 2a31905a567d
equal deleted inserted replaced
1331:c7d6317c5e82 1332:12286b3ee214
   728 				$html .= '<td class="' . $class . '">' . $lang->get('onpage_cat_msg_no_pages') . '</td>';
   728 				$html .= '<td class="' . $class . '">' . $lang->get('onpage_cat_msg_no_pages') . '</td>';
   729 			}
   729 			}
   730 			$html .= '</tr></table></div>' . "\n\n";
   730 			$html .= '</tr></table></div>' . "\n\n";
   731 		}
   731 		}
   732 		
   732 		
   733 		if ( $this->namespace != 'Special' && $this->namespace != 'Admin' )
   733 		// FIXME check_acl_scope here may not be a great idea... if there's no way to ever edit categorization OR tags for
       
   734 		// a given namespace because the permsissions don't allow for it, don't display the box at all.
       
   735 		if ( $this->namespace != 'Special' && $this->namespace != 'Admin'  &&
       
   736 				($session->check_acl_scope('edit_cat', $this->namespace) || $session->check_acl_scope('tag_create', $this->namespace)) )
   734 		{
   737 		{
   735 			$html .= '<div class="mdg-comment" style="margin: 10px 0 0 0;" id="category_box_wrapper">';
   738 			$html .= '<div class="mdg-comment" style="margin: 10px 0 0 0;" id="category_box_wrapper">';
   736 			$html .= '<div style="float: right;">';
   739 			$html .= '<div style="float: right;">';
   737 			$html .= '(<a href="#" onclick="ajaxCatToTag(); return false;">' . $lang->get('tags_catbox_link') . '</a>)';
   740 			$html .= '(<a href="#" onclick="ajaxCatToTag(); return false;">' . $lang->get('tags_catbox_link') . '</a>)';
   738 			$html .= '</div>';
   741 			$html .= '</div>';