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’)) {
<&|/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) {
-
>
<& /Elements/ShowUser, Address => Email::Address->parse($addr) &>
% }
+}
Thank you very much!
Le 10/10/2016 � 18:00, Tobi hfhf a �crit :
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’)) {
it’s perl code, so you’re missing a “%” sign here.
+}
here too.
don’t forget to clear the mason cache before testing again.
Easter-eggs Sp�cialiste GNU/Linux
44-46 rue de l’Ouest - 75014 Paris - France - M�tro Gait�
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com