meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

Private rooms #2901

Open jberanek opened 3 years ago

jberanek commented 3 years ago

Hi

How can I make some rooms (1 or 2) privat, that only admin can see after login? Should something be added in mrbs_auth.inc

/Bruno S

Reported by: bks0401

Original Ticket: mrbs/support-requests/2210

jberanek commented 3 years ago

This is a feature that is currently being worked on and will appear in a future release.

In the meantime, assuming you are running MRBS 1.9.2, you can modify the function is_visible() in mrbs_auth.inc. For example

function is_visible($room)
{
  // Example makes room ids 4, 6 and 7 only visible to admins
  return (!in_array($room, array(4, 6, 7)) || is_admin());
}

Original comment by: campbell-m

jberanek commented 3 years ago

Thanks it works :-)

Original comment by: *anonymous