Skip to content

Commit

Permalink
Don't show UI to attach tags if user has no access rights for it
Browse files Browse the repository at this point in the history
Fixes #21679
  • Loading branch information
atrol committed Sep 9, 2016
1 parent 1279ac3 commit 7a2ea17
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bug_report_page.php
Expand Up @@ -203,9 +203,6 @@
$t_show_status = in_array( 'status', $t_fields );
$t_show_tags =
in_array( 'tags', $t_fields ) &&
access_has_global_level( config_get( 'tag_view_threshold', /* default */ null, /* user */ null, $t_project_id ) );
$t_can_attach_tag =
$t_show_tags &&
access_has_project_level(
config_get( 'tag_attach_threshold', /* default */ null, /* user */ null, $t_project_id ),
$t_project_id );
Expand Down

0 comments on commit 7a2ea17

Please sign in to comment.