Index: WAeUP_SRP/trunk/skins/waeup_default/getDynamicRoles.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_default/getDynamicRoles.py	(revision 880)
+++ WAeUP_SRP/trunk/skins/waeup_default/getDynamicRoles.py	(revision 880)
@@ -0,0 +1,15 @@
+## Script (Python) "getDynamicRoles"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=
+##title=
+##
+# $Id: $
+"""
+return the dynamic roles
+"""
+return ('ClearanceOfficer','CourseAdviser')
+
Index: WAeUP_SRP/trunk/skins/waeup_student/clearance_officer_guard.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/clearance_officer_guard.py	(revision 879)
+++ 	(revision )
@@ -1,30 +1,0 @@
-## Script (Python) "clearance_officer_guard"
-##bind container=container
-##bind context=context
-##bind namespace=
-##bind script=script
-##bind subpath=traverse_subpath
-##parameters=
-##title=
-##
-# $Id$
-"""
-check if the current action is allowed for the clearance_officer
-
-"""
-wftool = context.portal_workflow
-mtool = context.portal_membership
-member = mtool.getAuthenticatedMember()
-roles = member.getRolesInContext(context)
-
-def intersection(a,b):
-    r = []
-    for i in a:
-        if i in b:
-            r.append(i)
-    return r
-if intersection(('Manager', 'SectionManager'),roles)\
-                  or context.isClearanceOfficer():
-    return True
-return False
-
Index: WAeUP_SRP/trunk/skins/waeup_student/owner_guard.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/owner_guard.py	(revision 879)
+++ 	(revision )
@@ -1,28 +1,0 @@
-## Script (Python) "owner_guard"
-##bind container=container
-##bind context=context
-##bind namespace=
-##bind script=script
-##bind subpath=traverse_subpath
-##parameters=
-##title=
-##
-# $Id$
-"""
-check if the current action is allowed for the + owner
-"""
-
-mtool = context.portal_membership
-member = mtool.getAuthenticatedMember()
-roles = member.getRolesInContext(context)
-
-def intersection(a,b):
-    r = []
-    for i in a:
-        if i in b:
-            r.append(i)
-    return r
-
-if len(intersection(('Manager', 'SectionManager','Owner'),roles)) > 0:
-    return True
-return True
