summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-11-15 16:49:25 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-11-15 16:49:25 +0100
commit776c0c684ce2a78c873210a98adf9bf3cf70a1d7 (patch)
tree804caa732cdb49ec8809ee482e5c5501cb004e32
parent3ae054763b8f3de1dae7e8c673c850d6d15185ca (diff)
downloadbugzilla-776c0c684ce2a78c873210a98adf9bf3cf70a1d7.tar.gz
bugzilla-776c0c684ce2a78c873210a98adf9bf3cf70a1d7.tar.xz
Bug 938763 - Ember.show no longer works since the bug_check_can_change_field hook added to TrackingFlags ext
r=glob
-rw-r--r--extensions/TrackingFlags/Extension.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/extensions/TrackingFlags/Extension.pm b/extensions/TrackingFlags/Extension.pm
index b9b1956f0..d1cd9eb8e 100644
--- a/extensions/TrackingFlags/Extension.pm
+++ b/extensions/TrackingFlags/Extension.pm
@@ -519,10 +519,7 @@ sub bug_check_can_change_field {
push @$priv_results, PRIVILEGES_REQUIRED_NONE;
}
else {
- # we can't return PRIVILEGES_REQUIRED_EMPOWERED as that has different
- # conditions (eg. it assumes reporters can always change fields).
- ThrowUserError('tracking_flags_change_denied',
- { flag => $flag, value => $new_value });
+ push @$priv_results, PRIVILEGES_REQUIRED_EMPOWERED;
}
}