[CMF-checkins] CVS: CMF - standard_top_bar.dtml:1.3

andrew@digicool.com andrew@digicool.com
Thu, 17 May 2001 16:15:30 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault/skins/generic
In directory korak.digicool.com:/tmp/cvs-serv14216

Modified Files:
	standard_top_bar.dtml 
Log Message:

*Tracker #245 resolution
*A check was added which hides the link from users who cannot
view it.  I'm thinking about an approach which would allow for
all links to be wrapped, making this easier for more generalized
use rather then hardcoded as it is here.



--- Updated File standard_top_bar.dtml in package CMF --
--- standard_top_bar.dtml	2001/03/13 22:20:09	1.2
+++ standard_top_bar.dtml	2001/05/17 20:15:30	1.3
@@ -19,7 +19,12 @@
   <td class="NavBar" align="right" valign="bottom" width="70%" wrap="no">
    <form action="&dtml-portal_url;/search">
     <a href="&dtml-portal_url;">home</a>&nbsp;
+    <dtml-let member="portal_membership.getAuthenticatedMember()"
+              listMembers="portal_membership.checkPermission('List portal members', member)">
+    <dtml-if listMembers>`
     <a href="&dtml-portal_url;/roster">members</a>&nbsp;
+    </dtml-if>
+    </dtml-let>
     <a href="&dtml-portal_url;/recent_news">news</a>&nbsp;
     <a href="&dtml-portal_url;/search_form">search</a>
     <input name="SearchableText" size="16">