cyberrant Posted June 6, 2013 Posted June 6, 2013 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?
secretlife Posted June 8, 2013 Posted June 8, 2013 I don't know the answer sorry as I don't have much experience of MRBS but if you post in the add ons forum of Moodle.org with a descriptive title then hopefully Davo Smith who now maintains this module might have a suggestion -forum is on this URL https://moodle.org/mod/forum/view.php?id=44
cyberrant Posted June 8, 2013 Author Posted June 8, 2013 this is now an open thread on moodle.org https://moodle.org/mod/forum/discuss.php?d=230259
cyberrant Posted June 20, 2013 Author Posted June 20, 2013 (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 June 20, 2013 by cyberrant
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now