Index: WAeUP_SRP/base/skins/waeup_student/clearance_edit.py
===================================================================
--- WAeUP_SRP/base/skins/waeup_student/clearance_edit.py	(revision 2363)
+++ WAeUP_SRP/base/skins/waeup_student/clearance_edit.py	(revision 2364)
@@ -36,5 +36,5 @@
 #'Sorry, you are not allowed to access this page!'
 if info == None:
-  return REQUEST.RESPONSE.redirect(context.standard_error_message())
+    return REQUEST.RESPONSE.redirect(context.standard_error_message())
 student = info['student']
 #app = info['app']
@@ -49,6 +49,4 @@
                   )
 required_scans = ('fst_sit_scan',
-                  'age_dec',
-                  'birth_certificate',
 #                 'jamb_slip',
                   'ref_let',
@@ -97,17 +95,10 @@
         psm = "Content changed!"
         logger.info('%s edited clearance object of %s' % (member_id,student_id ))
-
     elif cpsdocument_edit_and_view_button:
         if acknowledge and info['review_state'] == "clearance_pin_entered":
-            missing = False
-            #files = clear_doc.objectIds()
-            # for scan in required_scans:
-            #     if scan not in files:
-            #         missing = True
-            #         break
-            # if not missing:
-            #     if not "age_dec" in files and not "birth_certificate" in files:
-            #         missing = True
-            if not context.waeup_tool.picturesExist(required_scans):
+            files = context.waeup_tool.picturesList()
+            req_found = [scan for scan in required_scans if scan in files]
+            birth_found = "age_dec" in files or "birth_certificate" in files
+            if not req_found or not birth_found:
                 logger.info('%s requested clearance with documents missing' % (student_id))
                 psm = "You have not uploaded all necessary documents to request clearance!"
