Index: /main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py	(revision 16455)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py	(revision 16456)
@@ -146,4 +146,6 @@
     def dataNotComplete(self):
         store = getUtility(IExtFileStore)
+        if not store.getFileByContext(self.context, attr=u'passport.jpg'):
+            return _('No red background passport picture uploaded.')
         if not store.getFileByContext(self.context, attr=u'birth_certificate.jpg'):
             return _('No birth certificate uploaded.')
@@ -780,10 +782,8 @@
             emit_lock_message(self)
             return
-        # Passport pictures must not be editable if application slip
-        # exists.
         slip = getUtility(IExtFileStore).getFileByContext(
             self.context, 'application_slip')
         PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES
-        if self.context.state not in PORTRAIT_CHANGE_STATES or slip is not None:
+        if self.context.state not in PORTRAIT_CHANGE_STATES:
             emit_lock_message(self)
             return
Index: /main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py	(revision 16455)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py	(revision 16456)
@@ -45,5 +45,5 @@
 
 SAMPLE_FPM = os.path.join(os.path.dirname(__file__), 'sample.fpm')
-SAMPLE_IMAGE = os.path.join(os.path.dirname(__file__), 'test_image.jpg')
+SAMPLE_PASSPORT = os.path.join(os.path.dirname(__file__), 'test_image.jpg')
 
 class OfficerUITests(StudentsFullSetup):
@@ -157,4 +157,15 @@
         # have been uploaded.
         self.browser.getControl("Save and request clearance").click()
+
+        self.assertTrue('No red background passport picture uploaded'
+            in self.browser.contents)
+        passport = 'My passport picture'
+        file_id = IFileStoreNameChooser(self.student).chooseName(
+            attr="passport.jpg")
+        image = open(SAMPLE_PASSPORT, 'rb')
+        file_store.createFile(file_id, image)
+        self.browser.open(self.edit_clearance_path)
+        self.browser.getControl("Save and request clearance").click()
+
         self.assertTrue('No birth certificate uploaded'
             in self.browser.contents)
