Index: /WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py	(revision 1358)
+++ /WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py	(revision 1359)
@@ -39,5 +39,5 @@
     logger.info('"%s","not found in students_catalog"')
     return None
-    
+
 ekehuan_certificates = ('BARTAPG',
                         'BARTAPM',
@@ -66,5 +66,4 @@
 
 students_object = context.portal_url.getPortalObject().campus.students
-res = context.results_import(matric_no = s_brain.matric_no)
 student = getattr(students_object, student_id)
 info['id'] = student_id
@@ -72,11 +71,10 @@
 review_state = info['review_state'] = wf.getInfoFor(student,'review_state',None)
 booking_allowed = False
-if review_state in ('returning','school_fee_paid','courses_registered', 'courses_validated',):
+if review_state in ('cleared_and_validated','returning','school_fee_paid','courses_registered', 'courses_validated',):
+    booking_allowed = True
     res = context.results_import(matric_no = s_brain.matric_no)
     if res:
         booking_allowed = res[0].Verdict in ("SUCCESSFUL STUDENT",
                                              "STUDENT WITH CARRYOVER COURSES",)
-elif review_state in ('cleared_and_validated',):
-    booking_allowed = True
 info['booking_allowed'] = booking_allowed
 if not booking_allowed:
Index: /WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py	(revision 1358)
+++ /WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py	(revision 1359)
@@ -55,4 +55,10 @@
 if res:
     info['review_state'] = res[0].review_state
+res = context.results_import(matric_no = st_brain.matric_no)
+if res:
+    info['session'] = True
+else:
+    info['session'] = False
+
 info['id'] = student_id
 items = []
Index: /WAeUP_SRP/trunk/skins/waeup_student/student_view.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/student_view.pt	(revision 1358)
+++ /WAeUP_SRP/trunk/skins/waeup_student/student_view.pt	(revision 1359)
@@ -41,5 +41,5 @@
             
           </tr>
-          <tr tal:condition="python:info['review_state'] == 'returning'">
+          <tr tal:condition="info/session">
             <td>
                 <a href="edit" tal:attributes="href string:session_results_view">
@@ -85,5 +85,5 @@
         </tr>
       </span>
-      <tr tal:condition="python:info['review_state'] == 'returning'">
+      <tr tal:condition="info/session">
         <td>
             <a href="edit" tal:attributes="href string:session_results_view">
