Skip to content

Commit

Permalink
Fix #13085: do not display "Create Tag" link when user can't edit tags
Browse files Browse the repository at this point in the history
Signed-off-by: David Hicks <d@hx.id.au>
  • Loading branch information
dregad authored and davidhicks committed Jul 12, 2011
1 parent b8431b5 commit c0ceefd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions manage_tags_page.php
Expand Up @@ -132,8 +132,12 @@
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="4">
<?php echo lang_get( 'manage_tags_link' ) ?> [<?php echo $t_total_tag_count ?>]
<?php print_link( '#tagcreate', lang_get( 'tag_create' ) ) ?>
<?php
echo lang_get( 'manage_tags_link' ) . ' [' . $t_total_tag_count . '] ';
if ( $t_can_edit ) {
print_link( '#tagcreate', lang_get( 'tag_create' ) );
}
?>
</td>
</tr>
<tr class="row-category">
Expand Down

0 comments on commit c0ceefd

Please sign in to comment.