From 1553ce228cf0c2c87bbb3222657a3614ea095e0b Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Fri, 13 Sep 2013 13:11:54 -0400 Subject: Revert Bug 915830 - Tracking flags don't contain values for extensions/TrackingFlags/Extension.pm --- extensions/TrackingFlags/Extension.pm | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'extensions/TrackingFlags') diff --git a/extensions/TrackingFlags/Extension.pm b/extensions/TrackingFlags/Extension.pm index 0dc3248ac..b79faef61 100644 --- a/extensions/TrackingFlags/Extension.pm +++ b/extensions/TrackingFlags/Extension.pm @@ -546,23 +546,4 @@ sub mailer_before_send { } } -sub bug_check_can_change_field { - my ($self, $args) = @_; - my $field = $args->{'field'}; - my $old_value = $args->{'old_value'}; - my $new_value = $args->{'new_value'}; - my $priv_results = $args->{'priv_results'}; - - my $flag = Bugzilla::Extension::TrackingFlags::Flag->new( - { name => $field }); - $flag || return; - - # Used by show_bug to determine if field is visible so always allow - return if ($old_value == 0 && $new_value == 1); - - if (defined $new_value && !$flag->can_set_value($new_value)) { - push (@$priv_results, PRIVILEGES_REQUIRED_EMPOWERED); - } -} - __PACKAGE__->NAME; -- cgit v1.2.3-24-g4f1b