Index: main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py	(revision 15944)
+++ main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py	(revision 17176)
@@ -28,4 +28,5 @@
     bed_letters, blocks, SpecialHandlingSource,
     NOT_OCCUPIED)
+from waeup.kofa.students.interfaces import (IStudentsUtils)
 
 # Define a validation method for sort ids
@@ -285,12 +286,13 @@
             return
         catalog = getUtility(ICatalog, name='students_catalog')
+        accommodation_span = getUtility(IStudentsUtils).ACCOMMODATION_SPAN
         accommodation_session = getSite()['hostels'].accommodation_session
         students = catalog.searchResults(current_session=(
-            accommodation_session,accommodation_session))
+            accommodation_session-accommodation_span,accommodation_session))
         student_ids = [student.student_id for student in students]
         if not bed.owner in student_ids:
             raise Invalid(_(
                 "Either student does not exist or student "
-                "is not in accommodation session."))
+                "is not eligible to book accommodation."))
         catalog = getUtility(ICatalog, name='beds_catalog')
         beds = catalog.searchResults(owner=(bed.owner,bed.owner))
Index: main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py	(revision 15944)
+++ main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py	(revision 17176)
@@ -452,5 +452,5 @@
         self.assertMatches(
             "...Either student does not exist or student "
-            "is not in accommodation session...",
+            "is not eligible to book accommodation...",
             self.browser.contents)
         self.browser.getControl(name="form.owner").value = self.student_id
