Index: main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py	(revision 6997)
+++ main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py	(revision 7003)
@@ -1108,5 +1108,6 @@
             self.flash('Activation code is invalid.')
             return
-        # Search a bed and exit if no bed is found
+        # Search a bed and exit if no bed is found or if the student
+        # has already booked a bed
         cat = queryUtility(ICatalog, name='beds_catalog', default=None)
         entries = cat.searchResults(
@@ -1117,4 +1118,11 @@
             self.flash('There is no free bed in your category %s.'
                         % acc_details['bt'])
+            return
+        entries = cat.searchResults(
+            owner=(student.student_id,student.student_id))
+        if len(entries):
+            bed = [entry for entry in entries][0]
+            self.flash('You already booked bed %s.'
+                        % bed.bed_id)
             return
         # Mark pin as used (this also fires a pin related transition)
