Skip to content

Commit

Permalink
PR cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cproensa committed Feb 4, 2020
1 parent 7c4a390 commit c4c8b76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion core/access_api.php
Expand Up @@ -904,7 +904,6 @@ function access_has_limited_view( $p_project_id = null, $p_user_id = null ) {
$t_old_limit_reporters = config_get( 'limit_reporters', null, $t_user_id, $t_project_id );
if( ON != $t_old_limit_reporters ) {
$t_threshold_can_view = config_get( 'limit_view_unless_threshold', null, $t_user_id, $t_project_id );
//return $t_threshold_can_view;
} else {
# If old 'limit_reporters' option is enabled, use that setting
# Note that the effective threshold can vary for each project, based on the reporting threshold configuration.
Expand Down
3 changes: 0 additions & 3 deletions core/classes/BugFilterQuery.class.php
Expand Up @@ -562,9 +562,6 @@ protected function build_projects() {
foreach( $t_included_project_ids as $t_pid ) {
$t_access_required_to_view_private_bugs = config_get( 'private_bug_threshold', null, null, $t_pid );
$t_can_see_private = access_has_project_level( $t_access_required_to_view_private_bugs, $t_pid, $t_user_id );
//$t_limited_for_handler = access_has_limited_view_for_handler( $t_pid, $t_user_id );
//$t_limited_for_reporter = access_has_limited_view_for_reporter( $t_pid, $t_user_id );
//$t_limited_for_any = $t_limited_for_handler || $t_limited_for_reporter;

if( access_has_limited_view( $t_pid, $t_user_id ) ) {
# if we have a reduced access to show only own reported or handled issues, we want to show both
Expand Down

0 comments on commit c4c8b76

Please sign in to comment.