Skip to content

Commit

Permalink
Fix access check for timeline events
Browse files Browse the repository at this point in the history
Issue #18015
  • Loading branch information
vboctor committed Jul 22, 2015
1 parent adbd088 commit e475711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/history_api.php
Expand Up @@ -241,7 +241,7 @@ function history_get_event_from_row( $p_result, $p_user_id = null, $p_check_acce
}

# if no specific bug id specified, check access level for the bug associated with current row.
if ( $p_check_access_to_issue === null ) {
if( $p_check_access_to_issue ) {
if ( !isset( $t_bug_visible[$v_bug_id] ) ) {
$t_bug_visible[$v_bug_id] = access_has_bug_level( VIEWER, $v_bug_id );
}
Expand Down

0 comments on commit e475711

Please sign in to comment.