Jump to content

Recommended Posts

Posted

can anyone tell me a way around this one, we currently have a moodle 2.2 install with MRBS. we have all our rooms set up and they are currently in use by staff.

 

what we want to do is set it so NO ONE other than 'admin user' can add a booking outside of the 'max day' setting.

 

i've found one or two threads on this but nothing about the moodle version, can anyone help?

  • 2 weeks later...
Posted (edited)

i believe i have fixed this issue,

 

by going into 'config.inc.php' and replacing the line:

 

$max_advance_days = isset($cfg_mrbs->max_advance_days) ? $cfg_mrbs->max_advance_days : -1;

 

with is

 

if (is_siteadmin()) {

$max_advance_days = -1;

} else {

$max_advance_days = 2;

}

$cfg_mrbs->max_advance_days = $max_advance_days;

 

 

it allows site administrators to alter/add/delete any bookings outside of the max advance days setting

Edited by cyberrant

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...