<span class="postbody">I use restrictions to control access to my pages.
<br>
<br>In my <span style="font-weight: bold;">
security.drl</span>
 file, I have :
<br>
<br></span>
<table align="center" border="0" cellpadding="3" cellspacing="1" width="90%">
<tbody><tr>
          <td><span class="genmed"><b>Code:</b></span></td>
        </tr>
        <tr>
          <td class="code"><pre>rule RestrictAccessClientEdit<br>        when<br>                check: PermissionCheck(name == &quot;/ClientEdit.xhtml&quot;, action == &quot;render&quot;)<br>                  Role(name == &quot;admin&quot;)<br>        then<br>                check.grant
();<br><br>rule RestrictAccessOrderEdit<br>        when<br>                check: PermissionCheck(name == &quot;/OrderEdit.xhtml&quot;, action == &quot;render&quot;)<br>                  Role(name == &quot;admin&quot;)<br>        then<br>                check.grant();<br>end;        
</pre></td></tr>
</tbody></table>
<span class="postbody">

<br>
<br>I want to generalize this restriction so to apply it to all pages publishing: <span style="font-weight: bold;">
*Edit.xhtml</span>

<br>
<br>I tried like that :
</span><span class="postbody"><br><br></span><div style="margin-left: 40px;"><span class="genmed"><b>Code:</b></span></div>
        
        
          <div style="margin-left: 80px;"> check: PermissionCheck(name == &quot;/*Edit.xhtml&quot;, action == &quot;render&quot;)<br></div><span class="postbody"><br>Any help would be very welcome,
<br>Thanks,<br><br></span>-- <br>Mohamed Mhissen<br><a href="mailto:mohamed.mhissen@bsaconseil.com">mohamed.mhissen@bsaconseil.com</a><br>+33.6.65.04.28.79