Skip to content

Commit

Permalink
Fix #11481: Incorrect arguments for access_has_any_project
Browse files Browse the repository at this point in the history
Commit 6dc3510 introduced improved
checking within print_column_selection to determine which actions should
be presented to users as part of the actiongroup support in MantisBT.

However the second argument to access_has_any_project should not be
defined in the way it was, as it is refers to the user ID not the
project ID. We don't need to specify this argument anyway, so it is
removed in this patch.
  • Loading branch information
davidhicks committed Feb 25, 2010
1 parent 2191aa1 commit 0cc7dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/columns_api.php
Expand Up @@ -885,7 +885,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 0cc7dde

Please sign in to comment.