meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

Own reservations views #2364

Open jberanek opened 5 years ago

jberanek commented 5 years ago

Hello, I would like to add three new views (day,week,month) where only own reservations are visible. Is it possible? Thanks for support BR Thabka ThanksfoThanks ThanlskskskskIIII

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1660

jberanek commented 5 years ago

Yes, it's possible, but you'd have to modify MRBS. The easiest thing to do is to modify the function map_add_booking() in functions_table.inc and at the beginning of the function add the lines

  $user = getUserName();
  if ($user != $entry['create_by'])
  {
    return;
  }

That should fix the day and week views. You'll have to look at the code for the month view and do something similar.

But I wonder why you want to do this? If it's just to stop people seeing others' bookings, then you could make use of private bookings, which means that you won't have to change the MRBS code at all.

Original comment by: campbell-m

jberanek commented 5 years ago

Thanks, I'll check it. It's because I need to have both views at the same time: In ex: _one day view with rooms informations where each user can see all reserevations and modify only own's _one day view with only own reservations with no informations about rooms as "personal agenda".

Thanks_oneo

onon dayo wheree

eone

one

oneoneone esxxxInIn

sIt's

Original comment by: *anonymous