Open jberanek opened 4 years ago
Assuming you are running MRBS 1.9.0 then modify the function getWritable() in mrbs_auth.inc and at line 280 add
if ($rooms == 4) // Change 4 to the id of the room in question
{
return is_book_admin($rooms);
}
Original comment by: campbell-m
yes, it is. Thank you
Original comment by: *anonymous
How should I change the code in 1.9.4 to only allow admin to book rooms from 3 to 7?
Original comment by: simona1974
At line 313 insert
if (in_array($rooms, array(3, 4, 5, 6, 7)))
{
return is_book_admin($rooms);
}
Original comment by: campbell-m
Thank you very much
Original comment by: simona1974
Hello,
how to make one room that only admin can book.
Thank you
Reported by: *anonymous
Original Ticket: mrbs/support-requests/2148