Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOO_MANY_REDIRECTS on report issue #1677

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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