You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/05/25 10:53:38 UTC

svn commit: r541591 - in /lenya/trunk/src/pubs/default/config: access-control/usecase-policies.xml menus/generic.xsp

Author: andreas
Date: Fri May 25 01:53:36 2007
New Revision: 541591

URL: http://svn.apache.org/viewvc?view=rev&rev=541591
Log:
Converted 'About Lenya' page to usecase. This makes it independent from proxying. See bug 42050 for more information.

Modified:
    lenya/trunk/src/pubs/default/config/access-control/usecase-policies.xml
    lenya/trunk/src/pubs/default/config/menus/generic.xsp

Modified: lenya/trunk/src/pubs/default/config/access-control/usecase-policies.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/config/access-control/usecase-policies.xml?view=diff&rev=541591&r1=541590&r2=541591
==============================================================================
--- lenya/trunk/src/pubs/default/config/access-control/usecase-policies.xml (original)
+++ lenya/trunk/src/pubs/default/config/access-control/usecase-policies.xml Fri May 25 01:53:36 2007
@@ -200,6 +200,12 @@
   <usecase id="admin.usecases">
     <role id="admin" method="grant"/>
   </usecase>
+  <usecase id="admin.aboutLenya">
+    <role id="admin" method="grant"/>
+    <role id="edit" method="grant"/>
+    <role id="review" method="grant"/>
+    <role id="visit" method="grant"/>
+  </usecase>
   <usecase id="admin.addGroup">
     <role id="admin" method="grant"/>
   </usecase>

Modified: lenya/trunk/src/pubs/default/config/menus/generic.xsp
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/config/menus/generic.xsp?view=diff&rev=541591&r1=541590&r2=541591
==============================================================================
--- lenya/trunk/src/pubs/default/config/menus/generic.xsp (original)
+++ lenya/trunk/src/pubs/default/config/menus/generic.xsp Fri May 25 01:53:36 2007
@@ -124,12 +124,10 @@
 
       <menu i18n:attr="name" name="Help">
         <block areas="authoring site admin">
+          <item uc:usecase="admin.aboutLenya" href="?"><i18n:text>About Apache Lenya</i18n:text></item>
+          <item href="http://lenya.apache.org"><i18n:text>Apache Lenya Homepage</i18n:text></item>
           <item href="http://lenya.apache.org/docs/index.html"><i18n:text>Documentation</i18n:text></item>
           <item href="http://wiki.apache.org/lenya/"><i18n:text>Wiki</i18n:text></item>
-        </block>
-        <block areas="authoring site admin">
-          <item><xsp:attribute name="href"><xsp-request:get-context-path/>/index.html</xsp:attribute><i18n:text>Apache Lenya Homepage</i18n:text></item>
-          <item><xsp:attribute name="href"><xsp-request:get-context-path/>/about.html</xsp:attribute><i18n:text>About Apache Lenya</i18n:text></item>
         </block>
       </menu>
       



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org