diff options
author | David Lawrence <dkl@redhat.com> | 2014-06-19 20:49:12 +0200 |
---|---|---|
committer | David Lawrence <dkl@redhat.com> | 2014-06-19 20:49:12 +0200 |
commit | 0a07cc286bfc870929f1af17e1bfdf8df73b9ff2 (patch) | |
tree | 0802d60ba28326f902984a80ad822680f188b23d /extensions/LastResolved/Extension.pm | |
parent | 28c28019236ab11342415043ade727e102f1424f (diff) | |
download | bugzilla-0a07cc286bfc870929f1af17e1bfdf8df73b9ff2.tar.gz bugzilla-0a07cc286bfc870929f1af17e1bfdf8df73b9ff2.tar.xz |
Bug 1012782 - Expose cf_last_resolved in the RPC API
r=glob
Diffstat (limited to 'extensions/LastResolved/Extension.pm')
-rw-r--r-- | extensions/LastResolved/Extension.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/extensions/LastResolved/Extension.pm b/extensions/LastResolved/Extension.pm index 3627330c2..ad0519387 100644 --- a/extensions/LastResolved/Extension.pm +++ b/extensions/LastResolved/Extension.pm @@ -61,11 +61,12 @@ sub _migrate_last_resolved { } } -sub active_custom_fields { +sub bug_check_can_change_field { my ($self, $args) = @_; - my $fields = $args->{'fields'}; - my @tmp_fields = grep($_->name ne 'cf_last_resolved', @$$fields); - $$fields = \@tmp_fields; + my ($field, $priv_results) = @$args{qw(field priv_results)}; + if ($field eq 'cf_last_resolved') { + push (@$priv_results, PRIVILEGES_REQUIRED_EMPOWERED); + } } sub bug_end_of_update { |