Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch '4.0/quicksearch-prefs-callback' into 4.0-trunk

  • Loading branch information...
commit 12d29194219ea8dce815a9acdaefb9a98331ed3c 2 parents 91c6c74 + 97ee6ca
Alex Vandiver alexmv authored

Showing 1 changed file with 10 additions and 1 deletion. Show diff stats Hide diff stats

  1. +10 1 share/html/Prefs/Quicksearch.html
11 share/html/Prefs/Quicksearch.html
@@ -71,7 +71,16 @@
71 71 my $unwanted = $user->Preferences('QuickSearch', {});
72 72 my $Queues = RT::Queues->new($session{'CurrentUser'});
73 73 $Queues->UnLimit;
74   -my @queues = grep {$_->CurrentUserHasRight('ShowTicket')} @{$Queues->ItemsArrayRef};
  74 +
  75 +my $right = 'ShowTicket';
  76 +$m->callback(
  77 + CallbackName => 'ModifyQueues',
  78 + Queues => \$Queues,
  79 + Right => \$right,
  80 + Unwanted => $unwanted,
  81 +);
  82 +
  83 +my @queues = grep { $right ? $_->CurrentUserHasRight($right) : 1 } @{$Queues->ItemsArrayRef};
75 84
76 85 if ($ARGS{'Save'}) {
77 86 for my $queue (@queues) {

0 comments on commit 12d2919

Please sign in to comment.
Something went wrong with that request. Please try again.