diff options
author | mark <mark> | 2011-01-01 00:47:17 +0000 |
---|---|---|
committer | mark <mark> | 2011-01-01 00:47:17 +0000 |
commit | edd081af5ca8e5fe87a9aaa8d364a70cc4163e74 (patch) | |
tree | ee52fdd0d514aeb178be91b1da1f14d79e82edbd /rt/lib/RT/Principal_Overlay.pm | |
parent | 903bebf00a555e3b285df70d031f158b5f817a16 (diff) |
limit ticket creation queue dropdowns based on ACL, RT#7778
Diffstat (limited to 'rt/lib/RT/Principal_Overlay.pm')
-rw-r--r-- | rt/lib/RT/Principal_Overlay.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rt/lib/RT/Principal_Overlay.pm b/rt/lib/RT/Principal_Overlay.pm index 75f89ca68..42474f863 100644 --- a/rt/lib/RT/Principal_Overlay.pm +++ b/rt/lib/RT/Principal_Overlay.pm @@ -163,6 +163,8 @@ sub GrantRight { my $type = $self->_GetPrincipalTypeForACL(); + RT->System->QueueCacheNeedsUpdate(1) if $args{'Right'} eq 'SeeQueue'; + # If it's a user, we really want to grant the right to their # user equivalence group return $ace->Create( @@ -210,6 +212,8 @@ sub RevokeRight { PrincipalType => $type, PrincipalId => $self->Id ); + + RT->System->QueueCacheNeedsUpdate(1) if $args{'Right'} eq 'SeeQueue'; return ($status, $msg) unless $status; return $ace->Delete; } |