We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d137a5c commit 3ac456aCopy full SHA for 3ac456a
lib/RT/Lifecycle.pm
@@ -760,6 +760,14 @@ sub FillCache {
760
}
761
762
763
+ # Build status rights from scratch to ensure deleted ones are removed from cache.
764
+ require RT::ACE;
765
+ for my $class (qw/RT::Queue RT::Catalog/) {
766
+ $RT::ACE::RIGHTS{$class} = {
767
+ map { $RT::ACE::RIGHTS{$class}{$_}{Category} eq 'Status' ? () : ( $_ => $RT::ACE::RIGHTS{$class}{$_} ) }
768
+ keys %{ $RT::ACE::RIGHTS{$class} }
769
+ };
770
+ }
771
for my $type (keys %LIFECYCLES_TYPES) {
772
for my $category ( qw(initial active inactive), '' ) {
773
my %seen;
0 commit comments