Skip to content

Commit

Permalink
Correct access_has_any_project checks in print_column_selection
Browse files Browse the repository at this point in the history
The access_has_any_project method call takes a user, not a project
parameter.
  • Loading branch information
rombert committed Sep 5, 2011
1 parent 338208c commit cad51f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/columns_api.php
Expand Up @@ -839,7 +839,7 @@ function print_column_selection( $p_bug, $p_columns_target = COLUMNS_TARGET_VIEW
global $g_checkboxes_exist;

echo '<td>';
if( access_has_any_project( config_get( 'report_bug_threshold', null, null, $p_bug->project_id ), $p_bug->project_id ) ||
if( access_has_any_project( config_get( 'report_bug_threshold', null, null, $p_bug->project_id ) ) ||
# !TODO: check if any other projects actually exist for the bug to be moved to
access_has_project_level( config_get( 'move_bug_threshold', null, null, $p_bug->project_id ), $p_bug->project_id ) ||
# !TODO: factor in $g_auto_set_status_to_assigned == ON
Expand Down

0 comments on commit cad51f2

Please sign in to comment.