projects
/
iserv-mod-room-reservation.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changelog.html: degraded bugs to "to do"s
[iserv-mod-room-reservation.git]
/
includes
/
mod_roomReservationBookingsManager.inc
diff --git
a/includes/mod_roomReservationBookingsManager.inc
b/includes/mod_roomReservationBookingsManager.inc
index
722c164
..
124068d
100644
(file)
--- a/
includes/mod_roomReservationBookingsManager.inc
+++ b/
includes/mod_roomReservationBookingsManager.inc
@@
-144,7
+144,12
@@
class mod_roomReservationBookingsManager {
($ob->getUid() == null and !$this->oCfg->userCanBook())) {
throw new AccessException(MOD_ROOM_RESERVATION_ERROR_ACCESS_DENIED);
}
($ob->getUid() == null and !$this->oCfg->userCanBook())) {
throw new AccessException(MOD_ROOM_RESERVATION_ERROR_ACCESS_DENIED);
}
-
+
+ // test if room is whitelisted
+ if(!$this->oCfg->isRoomWhitelisted($ob->getRoom())) {
+ throw new Exception(MOD_ROOM_RESERVATION_ERROR_ROOM_NOT_WHITELISTED);
+ }
+
$strWhere = null;
$strLog = "";
$strWhere = null;
$strLog = "";
This page took
0.020906 seconds
and
4
git commands to generate.