Index: waeup_product/trunk/Extensions/install.py
===================================================================
--- waeup_product/trunk/Extensions/install.py	(revision 47)
+++ waeup_product/trunk/Extensions/install.py	(revision 49)
@@ -63,17 +63,17 @@
                         'action'    : 'string:${object/absolute_url}/check_admission',
                         'permission': (View, ),
-                        'condition' : 'member',
-                        'category'  : 'student',
-                        'visible'   : 1,
-                      },
-                      { 'tool'      : 'portal_actions',
-                        'id'        : 'new_student',
-                        'name'      : 'Add Student',
-                        'action'    : 'string:${object/absolute_url}/create_student_form',
-                        'permission': (View),
-                        'condition' : 'python: member and here.portal_type == "StudentsFolder"',
-                        'category'  : 'student',
-                        'visible'   : 1,
-                      },
+                        'condition' : 'python: not member',
+                        'category'  : 'student',
+                        'visible'   : 1,
+                      },
+##                      { 'tool'      : 'portal_actions',
+##                        'id'        : 'new_student',
+##                        'name'      : 'Add Student',
+##                        'action'    : 'string:${object/absolute_url}/create_student_form',
+##                        'permission': (View),
+##                        'condition' : 'python: 0 and member and here.portal_type == "StudentsFolder"',
+##                        'category'  : 'student',
+##                        'visible'   : 1,
+##                      },
                       { 'tool'      : 'portal_actions',
                         'id'        : 'edit_student',
@@ -81,5 +81,5 @@
                         'action'    : 'cpsdocument_edit_form',
                         'permission': ( ),
-                        'condition' : 'python: member and  here.portal_type == "Student"',
+                        'condition' : 'python: 0 and member and  here.portal_type == "Student"',
                         'category'  : 'student',
                         'visible'   : 1,
@@ -87,8 +87,8 @@
                       { 'tool'      : 'portal_actions',
                         'id'        : 'add_jamb',
-                        'name'      : 'Add Jamb Data',
-                        'action'    : 'string:${object/absolute_url}/create_jamb_form',
+                        'name'      : 'Add Student JAMB',
+                        'action'    : 'string:${object/absolute_url}/create_jamb',
                         'permission': (),
-                        'condition' : 'python:not here.portal_type in ("Jamb","StudentsFolder") and len(object.contentItems()) == 0',
+                        'condition' : 'python: member and here.portal_type in ("StudentsFolder",) and "StudentManager" in member.getGroups()',
                         'category'  : 'student',
                         'visible'   : 1,
@@ -99,5 +99,5 @@
                         'action'    : 'string:${object/absolute_url}/create_personal_form',
                         'permission': (),
-                        'condition' : 'python:not here.portal_type in ("Jamb","StudentsFolder")',
+                        'condition' : 'python: 0 and member and not here.portal_type in ("Jamb","StudentsFolder") and not "StudentManager" in member.getGroups()',
                         'category'  : 'student',
                         'visible'   : 1,
@@ -108,5 +108,5 @@
                         'action'    : 'cpsdocument_edit_form',
                         'permission': ( ),
-                        'condition' : 'python: here.portal_type == "Jamb"',
+                        'condition' : 'python: member and here.portal_type in ("Student",) and "StudentManager" in member.getGroups()',
                         'category'  : 'student',
                         'visible'   : 1,
