Skip to content

Commit

Permalink
Fix #12568: Enforce bug monitoring visibility in history
Browse files Browse the repository at this point in the history
Only users with access level above show_monitor_list_threshold should be
allowed to see monitoring-related events in the bug history.

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
  • Loading branch information
dregad authored and davidhicks committed Dec 25, 2010
1 parent f10c878 commit 48a898c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/history_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,13 @@ function history_get_raw_events_array( $p_bug_id, $p_user_id = null ) {
}
}

// monitoring
if( $v_type == BUG_MONITOR || $v_type == BUG_UNMONITOR ) {
if( !access_has_global_level( config_get( 'show_monitor_list_threshold' ) ) ) {
continue;
}
}

$raw_history[$j]['date'] = $v_date_modified;
$raw_history[$j]['userid'] = $v_user_id;

Expand Down

0 comments on commit 48a898c

Please sign in to comment.