0 Replies Latest reply on Sep 15, 2008 11:56 AM by zergspirit

    Dynamic page restrictions

    zergspirit

      Hi.


      I would like to perform a dynamic page restriction that would check for a permission according to the url. Using pages.xml, it would be something like that:



                      <page view-id="/modules/the_permission_I_want_to_check/*"> 
                             <restrict> 
                                         #{s:hasPermission(the_permission_I_want_to_check,'view')} 
                             </restrict> 
                      </page> 



      What would be the best way to do it?