Do you just want this ability for some or all users?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2022-11-20
Only for some users, with this situation: superadmin (2) can do everything, some can enter only events (1), others can book groups of participants (...). I work in a school. Thanks for your interest.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if (!isset($mrbs_user) { return false; } if ($mrbs_user->level >= $min_booking_admin_level) { return true; } // Replace 'tom', 'dick', 'harry' by the usernames of those you want to be able to make bookings for otherrs return in_array($mrbs_user->username, array('tom', 'dick', 'harry'));
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if (!isset($mrbs_user)) { return false; } if ($mrbs_user->level >= $min_booking_admin_level) { return true; } // Replace 'tom', 'dick', 'harry' by the usernames of those you want to be able to make bookings for otherrs return in_array($mrbs_user->username, array('tom', 'dick', 'harry'));
[I was missing a ')' at the end of the first line.]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2022-11-20
thank you! works great: I needed a user who can only enter groups of students into activities in the calendar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you just want this ability for some or all users?
Only for some users, with this situation: superadmin (2) can do everything, some can enter only events (1), others can book groups of participants (...). I work in a school. Thanks for your interest.
Assuming you are running MRBS 1.10.0 you should edit the function
is_book_admin()
in mrbs_auth.inc and replace line 438 which is:by
Last edit: Campbell Morrison 2022-11-24
$mrbs_version_number = '1.10.0';
Can you post your version of mrbs_auth.inc as an attachment here please?
Edit out any sensitive usernames.
there
Sorry, it should be
[I was missing a ')' at the end of the first line.]
thank you! works great: I needed a user who can only enter groups of students into activities in the calendar