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

Emmanuel Lacour <[email protected]> Mon, 10 Oct 2016 18:17:19 +0200
Newsgroups gmane.comp.bug-tracking.request-tracker.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============0452113828==
Content-Type: multipart/alternative;
 boundary="------------8106BF244A02AA47F73517E5"

This is a multi-part message in MIME format.
--------------8106BF244A02AA47F73517E5
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit

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:[email protected]  -   http://www.easter-eggs.com


--------------8106BF244A02AA47F73517E5
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 10/10/2016 à 18:00, Tobi hfhf a
      écrit :<br>
    </div>
    <blockquote
cite="mid:DB4PR03MB622431BA467C41BEA4AE0B9A4DB0@DB4PR03MB622.eurprd03.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <p class="MsoNormal">Hello, <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I would like that this piece of code in the
          ModifyPeople.html File is executable only for user with
          SuperUser rights.
          <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I tried to use the code without sucess<span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;;"><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">+if 
          ($UserObj-&gt;CurrentUserHasRight('SuperUser')) {</p>
      </div>
    </blockquote>
    it's perl code, so you're missing a "%" sign here.<br>
    <br>
    <blockquote
cite="mid:DB4PR03MB622431BA467C41BEA4AE0B9A4DB0@DB4PR03MB622.eurprd03.prod.outlook.com"
      type="cite">
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <p class="MsoNormal"><o:p></o:p></p>
        <o:p></o:p>
        <p class="MsoNormal">+}</p>
      </div>
    </blockquote>
    <br>
    here too.<br>
    <br>
    don't forget to clear the mason cache before testing again.<br>
    <br>
    <blockquote
cite="mid:DB4PR03MB622431BA467C41BEA4AE0B9A4DB0@DB4PR03MB622.eurprd03.prod.outlook.com"
      type="cite">
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <p class="MsoNormal"><o:p></o:p></p>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
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
<a class="moz-txt-link-freetext" href="mailto:[email protected]">mailto:[email protected]</a>  -   <a class="moz-txt-link-freetext" href="http://www.easter-eggs.com">http://www.easter-eggs.com</a>
</pre>
  </body>
</html>

--------------8106BF244A02AA47F73517E5--

--===============0452113828==
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
--===============0452113828==--