summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-03-19 04:11:53 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-03-19 04:11:53 +0100
commit8f0cc43947fd5d93178b7f98c9548e1c4974d0b3 (patch)
tree48b837d8586d8f53bc32237bd7fb7ac518585421 /extensions
parent0709dae3eca4422295ad979b85dd8758e2426b76 (diff)
parent16ca329e85e1a36a4808cc088ebc8f5d18f22dae (diff)
downloadbugzilla-8f0cc43947fd5d93178b7f98c9548e1c4974d0b3.tar.gz
bugzilla-8f0cc43947fd5d93178b7f98c9548e1c4974d0b3.tar.xz
merge with bugzilla/4.2
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Example/Extension.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm
index 4498d2b22..af56b506b 100644
--- a/extensions/Example/Extension.pm
+++ b/extensions/Example/Extension.pm
@@ -822,6 +822,20 @@ sub bug_check_can_change_field {
}
}
+sub admin_editusers_action {
+ my ($self, $args) = @_;
+ my ($vars, $action, $user) = @$args{qw(vars action user)};
+ my $template = Bugzilla->template;
+
+ if ($action eq 'my_action') {
+ # Allow to restrict the search to any group the user is allowed to bless.
+ $vars->{'restrictablegroups'} = $user->bless_groups();
+ $template->process('admin/users/search.html.tmpl', $vars)
+ || ThrowTemplateError($template->error());
+ exit;
+ }
+}
+
sub user_preferences {
my ($self, $args) = @_;
my $tab = $args->{current_tab};