projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
limit ticket creation queue dropdowns based on ACL, RT#7778
[freeside.git]
/
rt
/
lib
/
RT
/
Principal_Overlay.pm
diff --git
a/rt/lib/RT/Principal_Overlay.pm
b/rt/lib/RT/Principal_Overlay.pm
index
75f89ca
..
42474f8
100644
(file)
--- a/
rt/lib/RT/Principal_Overlay.pm
+++ b/
rt/lib/RT/Principal_Overlay.pm
@@
-163,6
+163,8
@@
sub GrantRight {
my $type = $self->_GetPrincipalTypeForACL();
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(
# 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
);
PrincipalType => $type,
PrincipalId => $self->Id
);
+
+ RT->System->QueueCacheNeedsUpdate(1) if $args{'Right'} eq 'SeeQueue';
return ($status, $msg) unless $status;
return $ace->Delete;
}
return ($status, $msg) unless $status;
return $ace->Delete;
}