Skip to content

Commit

Permalink
Check bug permissions to show tags
Browse files Browse the repository at this point in the history
Check for bug access level, instead of global, to show tags in bug view
page.

Fixes: #23216
  • Loading branch information
cproensa authored and dregad committed Sep 9, 2017
1 parent 9f70532 commit 33a274f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bug_view_inc.php
Expand Up @@ -176,7 +176,7 @@
$t_show_last_updated = in_array( 'last_updated', $t_fields );
$t_last_updated = $t_show_last_updated ? date( config_get( 'normal_date_format' ), $t_bug->last_updated ) : '';

$t_show_tags = in_array( 'tags', $t_fields ) && access_has_global_level( config_get( 'tag_view_threshold' ) );
$t_show_tags = in_array( 'tags', $t_fields ) && access_has_bug_level( config_get( 'tag_view_threshold' ), $t_bug_id );

$t_bug_overdue = bug_is_overdue( $f_bug_id );

Expand Down

0 comments on commit 33a274f

Please sign in to comment.