Index: main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
===================================================================
--- main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py	(revision 18178)
+++ main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py	(revision 18179)
@@ -263,12 +263,13 @@
         return None, payment
 
-    #def checkAccommodationRequirements(self, student, acc_details):
-    #    msg = super(CustomStudentsUtils, self).checkAccommodationRequirements(
-    #        student, acc_details)
-    #    if msg:
-    #        return msg
-    #    if student.faccode not in ('FLW', 'FMED',):
-    #        return _('You are not eligible to book accommodation.')
-    #    return
+    def checkAccommodationRequirements(self, student, acc_details):
+        msg = super(CustomStudentsUtils, self).checkAccommodationRequirements(
+            student, acc_details)
+        if msg:
+            return msg
+        if student['studycourse'].entry_session != grok.getSite()[
+            'hostels'].accommodation_session:
+            return _('Only newly admitted students can book accommodation.')
+        return
 
     def getAccommodationDetails(self, student):
