[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


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')) {
<&|/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.</&>

% for my $addr (sort keys %recips) {
  <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>
% }

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