Index: WAeUP_SRP/base/skins/waeup_directory/member_view.pt
===================================================================
--- WAeUP_SRP/base/skins/waeup_directory/member_view.pt	(revision 2565)
+++ WAeUP_SRP/base/skins/waeup_directory/member_view.pt	(revision 2566)
@@ -1,44 +1,53 @@
 <tal:block define="
-  global id request/id;
+  global id request/id|nothing;
   global dirname string:members;
   global dir here/portal_directories/?dirname;
   global dirtitle dir/title_or_id;
-  "/>
-  <metal:block use-macro="here/main_template/macros/master">
-  <metal:block fill-slot="action_slot" tal:define="
-                        actions python:context.getMembersDirectoryActions('view')">   
-  <metal:block define-macro="members_actions">
-  <div class="fontColornavigation fontShapeaverage cpsskinsHBox body" >
-    <span tal:repeat="action actions" tal:omit-tag="">
-      <a tal:define="icon_tag action/icon_tag"
-         tal:attributes="href action/url;
-         class python:icon_tag and 'noicon' or None"
-         >
-        <tal:block condition="python:icon_tag"
-                   content="structure icon_tag"/>
-        <tal:block condition="python:not icon_tag">
-          <img tal:attributes="src
-          string:${base_url}noicon.png;
-          alt action/title" 
-          />
-        </tal:block>
-        <tal:block i18n:translate="" content="action/title" />
-      </a>
-    </span>
-  </div>
+  global allowed context/isStaff;"
+  />
+<metal:block use-macro="here/main_template/macros/master">
+  <metal:block tal:condition="allowed"
+               fill-slot="action_slot" 
+               tal:define="actions python:context.getMembersDirectoryActions('view')">   
+    <metal:block define-macro="members_actions">
+      <div class="fontColornavigation fontShapeaverage cpsskinsHBox body" >
+        <span tal:repeat="action actions" tal:omit-tag="">
+          <a tal:define="icon_tag action/icon_tag"
+             tal:attributes="href action/url;
+             class python:icon_tag and 'noicon' or None"
+             >
+            <tal:block condition="python:icon_tag"
+                       content="structure icon_tag"/>
+            <tal:block condition="python:not icon_tag">
+              <img tal:attributes="src
+              string:${base_url}noicon.png;
+              alt action/title" 
+              />
+            </tal:block>
+            <tal:block i18n:translate="" content="action/title" />
+          </a>
+        </span>
+      </div>
+    </metal:block>
   </metal:block>
-  </metal:block>
-
-  <metal:block fill-slot="main" tal:define="
-         res python: dir.renderEntryDetailed(id);
-         global rendered_main python: res[0];
-         ds python: res[1];">
-    <h3>
-      <span tal:content="ds/fullname" />     
-    </h3>
-    <div tal:replace="structure rendered_main">Rendered main...</div>
-    <input type="submit" name="back" i18n:attributes="value"
-           class="standalone" value="button_back" onClick="history.back()" />
+  <metal:block fill-slot="main">
+    <metal:block tal:condition="not: allowed">
+      <span tal:content="here/illegal_view" />
+    </metal:block>
+    <metal:block tal:condition="allowed">
+      <metal:block tal:define="
+      res python: dir.renderEntryDetailed(id);
+      global rendered_main python: res[0];
+      ds python: res[1];"
+      >
+        <h3>
+          <span tal:content="ds/fullname" />     
+        </h3>
+        <div tal:replace="structure rendered_main">Rendered main...</div>
+        <input type="submit" name="back" i18n:attributes="value"
+               class="standalone" value="button_back" onClick="history.back()" />
+      </metal:block>
+    </metal:block>
   </metal:block>
 </metal:block>
-
+  
