[rt-devel] Only user with SuperUser rights can see Modify who receives mail for ticket

Tobi hfhf registrirung at hotmail.de
Mon Oct 10 12:00:03 EDT 2016


Hello,

I would like that this piece of code in the ModifyPeople.html File is executable 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 this ticket.</&>
</p>

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

Thank you very much!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20161010/79b4cbb9/attachment.html>


More information about the rt-devel mailing list