diff options
Diffstat (limited to 'extensions/BMO')
-rw-r--r-- | extensions/BMO/Extension.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 458be737f..75ca30d8d 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -512,13 +512,17 @@ sub bug_check_can_change_field { { push (@$priv_results, PRIVILEGES_REQUIRED_NONE); } - elsif ($field eq 'resolution' && + elsif ($field eq 'resolution' && ($new_value eq 'DUPLICATE' || $new_value eq 'WORKSFORME' || - $new_value eq 'INCOMPLETE')) + $new_value eq 'INCOMPLETE' || + ($old_value eq '' && $new_value eq '1'))) { push (@$priv_results, PRIVILEGES_REQUIRED_NONE); } + elsif ($field eq 'dup_id') { + push (@$priv_results, PRIVILEGES_REQUIRED_NONE); + } } elsif ($field eq 'bug_status') { # Disallow reopening of bugs which have been resolved for > 1 year |