meeting-room-booking-system / mrbs-code

MRBS application code
Other
108 stars 56 forks source link

resource manager #1899

Open jberanek opened 7 years ago

jberanek commented 7 years ago

Hi, I have $auth["type"] = "db_ext"; I defined 3 administrators in config.inc.php

I can't understand how MRBS works with permissions. all 3 admin are able to "authorize" users booking for every kind of resource.

Is it possibile to give only to some users the permission to authorize bookings to specific resources ?

Resources: ROOMS -room a -room b -room c CARS -car 1 -car 2 -car 3

I'd like to have: user1 can manage ROOMS bookings user 2 can manage CARS bookings

and so on...

thanks.

Reported by: sunlight1976

Original Ticket: mrbs/support-requests/1180

jberanek commented 7 years ago

No, not as standard. You'd have to modify the function auth_book_admin() in mrbs_auth.inc. It takes the room_id as a parameter at the moment, but doesn't use it.

Original comment by: campbell-m

jberanek commented 7 years ago

So, actually the email address you can enter in room configuration is used only to notify that email of a new booking, right? and actually only admin users can authorize bookings and they can authorize EVERY booking for every resource, right?

thanks

Original comment by: sunlight1976

jberanek commented 7 years ago

Yes, correct. The names "room administrator" and "area administrator" are a bit misleading I'm afraid. They are only used for email notifications. For example they might be somebody who has to prepare the room before a meeting.

Original comment by: campbell-m