Skip to content

Commit

Permalink
Fixes #26988
Browse files Browse the repository at this point in the history
  • Loading branch information
maturbet authored and dregad committed Jun 4, 2020
1 parent 5100efa commit 3753e20
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bug_report_page.php
Expand Up @@ -138,6 +138,13 @@
$t_project_id = $t_default_project;
}

# Check for bug report threshold
if( !access_has_project_level( config_get( 'report_bug_threshold' ) ) ) {
# If can't report on current project, show project selector if there is any other allowed project
access_ensure_any_project_level( 'report_bug_threshold' );
print_header_redirect( 'login_select_proj_page.php?ref=bug_report_page.php' );
}

if( ( ALL_PROJECTS == $t_project_id || project_exists( $t_project_id ) )
&& $t_project_id != $t_current_project
&& project_enabled( $t_project_id ) ) {
Expand All @@ -152,12 +159,6 @@
print_header_redirect( 'login_select_proj_page.php?ref=bug_report_page.php' );
}

# Check for bug report threshold
if( !access_has_project_level( config_get( 'report_bug_threshold' ) ) ) {
# If can't report on current project, show project selector if there is any other allowed project
access_ensure_any_project_level( 'report_bug_threshold' );
print_header_redirect( 'login_select_proj_page.php?ref=bug_report_page.php' );
}
access_ensure_project_level( config_get( 'report_bug_threshold' ) );

$f_build = gpc_get_string( 'build', '' );
Expand Down

0 comments on commit 3753e20

Please sign in to comment.