<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=876345820-30032005><FONT face=Arial
color=#0000ff size=2>I played around long enough and found a solution to
this. I figured I'd share with everyone:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=876345820-30032005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=876345820-30032005><FONT face=Arial
color=#0000ff size=2>%my $q=new
RT::Queues($session{'CurrentUser'});<BR>%$q->UnLimit;<BR>%my $cansee =
0;<BR>%while (my $queue=$q->Next) {<BR>% if ($queue->id == 8)
{<BR>% if ($queue->CurrentUserHasRight('SeeQueue'))
{<BR>% $cansee =
1;<BR>% }<BR>% }<BR>%}<BR>%<BR>%if ($cansee)
{<BR><br><BR><& /Elements/MyElement
&><BR><br><BR>%}</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=876345820-30032005><FONT face=Arial color=#0000ff
size=2>--Alex</FONT></SPAN></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face="Courier New" size=2>Alex
Brelsfoard</FONT></SPAN> <BR><SPAN lang=en-us><FONT face="Courier New"
size=2>Web Applications Developer</FONT></SPAN> <BR><SPAN lang=en-us><FONT
face="Courier New" size=2>Web Development Office</FONT></SPAN> <BR><SPAN
lang=en-us><FONT face="Courier New" size=2>Worcester Polytechnic
Institute</FONT></SPAN> <BR><SPAN lang=en-us><FONT face="Courier New"
size=2>508-831-6147</FONT></SPAN> <BR><SPAN lang=en-us><FONT face="Courier New"
size=2>alexb@wpi.edu</FONT></SPAN> </P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of
</B>Brelsfoard, Alex<BR><B>Sent:</B> Wednesday, March 30, 2005 11:22
AM<BR><B>To:</B> rt-users@lists.bestpractical.com<BR><B>Subject:</B> [rt-users]
Displaying a section based on access to a queue<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial size=2>I would like to have
something displayed only if the person logged in has access to a particular
queue or is a member of a specific group.</FONT></SPAN></DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial
size=2>Basically:</FONT></SPAN></DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial size=2>% if
($UserIsMemberOfGroup("MyGroup") {</FONT></SPAN></DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial size=2><&
/Elements/MyElement &></FONT></SPAN></DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial size=2>%
}</FONT></SPAN></DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial size=2>Well, that's the
general gist of what I want. Any idea of what the proper syntax
is?</FONT></SPAN></DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial
size=2>Thanks.</FONT></SPAN></DIV>
<DIV><SPAN class=910171716-30032005><FONT face=Arial
size=2>--Alex</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face="Courier New" size=2>Alex
Brelsfoard</FONT></SPAN> <BR><SPAN lang=en-us><FONT face="Courier New"
size=2>Web Applications Developer</FONT></SPAN> <BR><SPAN lang=en-us><FONT
face="Courier New" size=2>Web Development Office</FONT></SPAN> <BR><SPAN
lang=en-us><FONT face="Courier New" size=2>Worcester Polytechnic
Institute</FONT></SPAN> <BR><SPAN lang=en-us><FONT face="Courier New"
size=2>508-831-6147</FONT></SPAN> <BR><SPAN lang=en-us><FONT face="Courier New"
size=2>alexb@wpi.edu</FONT></SPAN> </P>
<DIV> </DIV></BODY></HTML>