Only user with SuperUser rights can see Modify who receives mail for ticket

Tobi hfhf <[email protected]> Mon, 10 Oct 2016 16:00:03 +0000
Newsgroups gmane.comp.bug-tracking.request-tracker.devel
Message-ID <DB4PR03MB622431BA467C41BEA4AE0B9A4DB0@DB4PR03MB622.eurprd03.prod.outlook.com>
--===============1987841791==
Content-Language: de-DE
Content-Type: multipart/alternative;
	boundary="_000_DB4PR03MB622431BA467C41BEA4AE0B9A4DB0DB4PR03MB622eurprd_"

--_000_DB4PR03MB622431BA467C41BEA4AE0B9A4DB0DB4PR03MB622eurprd_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I would like that this piece of code in the ModifyPeople.html File is execu=
table only for user with SuperUser rights.

I tried to use the code without sucess

+if  ($UserObj->CurrentUserHasRight('SuperUser')) {
<p>
<&|/l&>The checked users may receive email related to this ticket depending=
 on the action taken. Uncheck users to stop sending email to them about thi=
s ticket.</&>
</p>

<ul>
% for my $addr (sort keys %recips) {
  <li>
  <input type=3D"hidden" name=3D"autorecipient" value=3D"<% $addr %>">
  <input type=3D"checkbox" name=3D"checked_recipient" id=3D"checked_recipie=
nt_<%$addr%>" value=3D"<%$addr%>" <% $recips{$addr} ? "checked" : "" %>>
  <label for=3D"checked_recipient_<%$addr%>"><& /Elements/ShowUser, Address=
 =3D> Email::Address->parse($addr) &></label>
  </li>
% }
+}

Thank you very much!


--_000_DB4PR03MB622431BA467C41BEA4AE0B9A4DB0DB4PR03MB622eurprd_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<p class=3D"MsoNormal">Hello, <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I would like that this piece of code in the ModifyPe=
ople.html File is executable only for user with SuperUser rights.
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I tried to use the code without sucess<span style=3D=
"font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p></o:p></span>=
</p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">&#43;if&nbsp; ($UserObj-&gt;CurrentUserHasRight('Sup=
erUser')) {<o:p></o:p></p>
<p class=3D"MsoNormal">&lt;p&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&lt;&amp;|/l&amp;&gt;The checked users may receive e=
mail related to this ticket depending on the action taken. Uncheck users to=
 stop sending email to them about this ticket.&lt;/&amp;&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&lt;/p&gt;<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">&lt;ul&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">% for my $addr (sort keys %recips) {<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp; &lt;li&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp; &lt;input type=3D&quot;hidden&quot; name=3D&q=
uot;autorecipient&quot; value=3D&quot;&lt;% $addr %&gt;&quot;&gt;<o:p></o:p=
></p>
<p class=3D"MsoNormal">&nbsp; &lt;input type=3D&quot;checkbox&quot; name=3D=
&quot;checked_recipient&quot; id=3D&quot;checked_recipient_&lt;%$addr%&gt;&=
quot; value=3D&quot;&lt;%$addr%&gt;&quot; &lt;% $recips{$addr} ? &quot;chec=
ked&quot; : &quot;&quot; %&gt;&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp; &lt;label for=3D&quot;checked_recipient_&lt;%=
$addr%&gt;&quot;&gt;&lt;&amp; /Elements/ShowUser, Address =3D&gt; Email::Ad=
dress-&gt;parse($addr) &amp;&gt;&lt;/label&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp; &lt;/li&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">% }<o:p></o:p></p>
<p class=3D"MsoNormal">&#43;}<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size: 12pt;">Thank you very much=
!&nbsp;</span><br>
</p>
<p class=3D"MsoNormal"><o:p></o:p></p>
<br>
<p></p>
</div>
</body>
</html>

--_000_DB4PR03MB622431BA467C41BEA4AE0B9A4DB0DB4PR03MB622eurprd_--

--===============1987841791==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

---------
RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017
--===============1987841791==--