[rt-users] Queue owner see too much

JJussi rt-users at jjussi.com
Thu Feb 11 05:43:37 EST 2010


OK..
I managed to fix this... And this would be nice change to orginal code (of 
course "real" programmer would write it maybe little different way)

So I made copy of SelectQueue to 'local/html/Elements' and changed that...

diff share/html/Elements/SelectQueue local/html/Elements/SelectQueue
77c77
< $ShowNullOption => 1
---
> $ShowNullOption => undef
87a88,97
> 
> my $qu = new RT::Queues($session{'CurrentUser'});
> $qu->UnLimit;
> 
> while (my $quu = $qu->Next){
>   if ($quu->CurrentUserHasRight('SuperUser')) {
>     $ShowNullOption = 1;
>   }
> }
> 



On Wednesday, 10. Februaryta 2010 11:34:11 you wrote:
> Hi!
> At report Tools > Reports > Created in a date range
> user have "Queue" drop down, where there is two choises. '-' and
> '(current)Queue'.
> If user selects his/her queue, result is from that queue. BUT s/he can
>  select that '-', then result is from ALL queues, and that's not good.
> 
> How to prevent that user cannot see reports from all queues?
> How to make so that everywhere where user can/should select queue, s/he
>  have only one option, his/her own queue?
> 


-- 
JJussi



More information about the rt-users mailing list