Skip to content

Commit

Permalink
Use correct threshold for display of Change status list+button
Browse files Browse the repository at this point in the history
Fix for issue #15258 introduced a check for 'update_bug_threshold' to
prevent unauthorized users from changing issue status.

This was not the correct config setting to use, the right one is
'update_bug_status_threshold'.

Fixes #16376
  • Loading branch information
dregad committed Sep 14, 2013
1 parent 68937db commit e074efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/html_api.php
Expand Up @@ -1395,8 +1395,8 @@ function html_button_bug_update( $p_bug_id ) {
function html_button_bug_change_status( $p_bug ) {
$t_current_access = access_get_project_level( $p_bug->project_id );

# User must have updater access to use the change status button
if( !access_has_bug_level( config_get( 'update_bug_threshold' ), $p_bug->id ) ) {
# User must have rights to change status to use this button
if( !access_has_bug_level( config_get( 'update_bug_status_threshold' ), $p_bug->id ) ) {
return;
}

Expand Down

0 comments on commit e074efd

Please sign in to comment.