Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py	(revision 15209)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py	(revision 15210)
@@ -2129,7 +2129,5 @@
 
     @property
-    def actionsgroup1(self):
-        if not self.with_hostel_selection:
-            return []
+    def booking_allowed(self):
         students_utils = getUtility(IStudentsUtils)
         acc_details  = students_utils.getAccommodationDetails(self.context.student)
@@ -2137,4 +2135,12 @@
             self.context.student, acc_details)
         if error_message:
+            return False
+        return True
+
+    @property
+    def actionsgroup1(self):
+        if not self.booking_allowed:
+            return []
+        if not self.with_hostel_selection:
             return []
         return [_('Save')]
@@ -2143,4 +2149,8 @@
     def actionsgroup2(self):
         if getattr(self.request.principal, 'user_type', None) == 'student':
+            ## Book button can be disabled in custom packages by
+            ## uncommenting the following lines.
+            #if not self.booking_allowed:
+            #    return []
             return [_('Book accommodation')]
         return [_('Book accommodation'), _('Remove selected')]
