File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -83,4 +83,24 @@ diag 'Test status rights cleanup';
8383 $agent -> text_lacks(' StallTicket' , ' Deleted right is gone on Rights page' );
8484}
8585
86+ diag ' Test that queue rights page only shows rights for its lifecycle' ;
87+ {
88+ # General queue uses 'default' lifecycle which has no custom status rights
89+ # The 'triage' lifecycle defines 'EscalateTicket' right
90+ # That right should NOT appear on General queue's rights page
91+
92+ $agent -> get_ok(' /Admin/Queues/GroupRights.html?id=1' );
93+ $agent -> text_lacks( ' EscalateTicket' , ' Rights from other lifecycles should not appear on queue rights page' );
94+
95+ # Now test a queue using the 'triage' lifecycle DOES show EscalateTicket
96+ my $triage_queue = RT::Test-> load_or_create_queue(
97+ Name => ' triage' ,
98+ Lifecycle => ' triage' ,
99+ );
100+ ok $triage_queue && $triage_queue -> id, ' loaded or created triage queue' ;
101+
102+ $agent -> get_ok(' /Admin/Queues/GroupRights.html?id=' . $triage_queue -> id);
103+ $agent -> text_contains( ' EscalateTicket' , ' Rights from queue lifecycle should appear on queue rights page' );
104+ }
105+
86106done_testing;
You can’t perform that action at this time.
0 commit comments