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> </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> </o:p></p>
<p class=3D"MsoNormal">I tried to use the code without sucess<span style=3D=
"font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span>=
</p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">+if ($UserObj->CurrentUserHasRight('Sup=
erUser')) {<o:p></o:p></p>
<p class=3D"MsoNormal"><p><o:p></o:p></p>
<p class=3D"MsoNormal"><&|/l&>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.</&><o:p></o:p></p>
<p class=3D"MsoNormal"></p><o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><ul><o:p></o:p></p>
<p class=3D"MsoNormal">% for my $addr (sort keys %recips) {<o:p></o:p></p>
<p class=3D"MsoNormal"> <li><o:p></o:p></p>
<p class=3D"MsoNormal"> <input type=3D"hidden" name=3D&q=
uot;autorecipient" value=3D"<% $addr %>"><o:p></o:p=
></p>
<p class=3D"MsoNormal"> <input type=3D"checkbox" name=3D=
"checked_recipient" id=3D"checked_recipient_<%$addr%>&=
quot; value=3D"<%$addr%>" <% $recips{$addr} ? "chec=
ked" : "" %>><o:p></o:p></p>
<p class=3D"MsoNormal"> <label for=3D"checked_recipient_<%=
$addr%>"><& /Elements/ShowUser, Address =3D> Email::Ad=
dress->parse($addr) &></label><o:p></o:p></p>
<p class=3D"MsoNormal"> </li><o:p></o:p></p>
<p class=3D"MsoNormal">% }<o:p></o:p></p>
<p class=3D"MsoNormal">+}<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size: 12pt;">Thank you very much=
! </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==--