meeting-room-booking-system / mrbs-code

MRBS application code
Other
121 stars 59 forks source link

How to make room and inform only accesible by admins? #1909

Open jberanek opened 7 years ago

jberanek commented 7 years ago

How to make room and inform only accesible by admins?

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1192

jberanek commented 7 years ago

Can you explain a little bit more which bits you want admins to have access to and which bits all users?

Original comment by: campbell-m

jberanek commented 7 years ago

well is to make the admin the only who can make rooms and se the informs, more precisely the user with a admin account can acces rooms and inform.

Original comment by: *anonymous

jberanek commented 7 years ago

I'm still not entirely sure exactly what you want, but there are a number of controls which might be useful. First there are these config variables:

// If you want only administrators to be able to make and delete bookings,
// set this variable to true
$auth['only_admin_can_book'] = false;
// If you want only administrators to be able to make repeat bookings,
// set this variable to true
$auth['only_admin_can_book_repeat'] = false;
// If you want only administrators to be able to make bookings spanning
// more than one day, set this variable to true.
$auth['only_admin_can_book_multiday'] = false;
// If you want only administrators to be able to select multiple rooms
// on the booking form then set this to true.  (It doesn't stop ordinary users
// making separate bookings for the same time slot, but it does slow them down).
$auth['only_admin_can_select_multiroom'] = false;
// If you don't want ordinary users to be able to see the other users'
// details then set this to true.  (Only relevant when using 'db' authentication]
$auth['only_admin_can_see_other_users'] = false;
// If you want to prevent the public (ie un-logged in users) from
// being able to view bookings, set this variable to true
$auth['deny_public_access'] = false;
// Set to true if you want admins to be able to perform bulk deletions
// on the Report page.  (It also only shows up if JavaScript is enabled)

Second, you can control the access levels for particular pages by changing the settings in mrbs_auth.inc.

Original comment by: campbell-m

jberanek commented 7 years ago

no i want the admin to be the onlys ones to enter the room an inform section

Original comment by: *anonymous

jberanek commented 7 years ago

Which pages do you mean by the "room and inform sections"? For example, do you mean view_entry.php?

Original comment by: campbell-m