Skip to content

Commit

Permalink
Don't require access check for fixed_in_version
Browse files Browse the repository at this point in the history
handle_bug_threshold is documented as the threshold at which someone can
be assigned to a bug. Therefore we shouldn't be checking this threshold
when changing the fixed_in_version field - update_bug_threshold is
enough (we use it for every other field).

Fixes #10647
  • Loading branch information
davidhicks committed Jul 1, 2009
1 parent c2ef5a6 commit 0cfb73e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/bug_api.php
Expand Up @@ -163,14 +163,6 @@ public function __set($name, $value) {
case 'category_id':
$value = (int)$value;
break;

case 'fixed_in_version':
if ( !$this->loading ) {
if ( !access_has_project_level( config_get( 'handle_bug_threshold' ) ) ) {
trigger_error( ERROR_ACCESS_DENIED, ERROR );
}
}
break;
case 'target_version':
if ( !$this->loading ) {
# Only set target_version if user has access to do so
Expand Down

0 comments on commit 0cfb73e

Please sign in to comment.