(1) Edit the function get_page_level() in mrbs_auth.inc so that the line case 'edit_room_handler.php': appears further up and produces the result 1 instead of 2.
(2) Edit edit_room.php and replace all occurrences of is_admin() by true.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You only asked for rooms! To create and edit areas you'll also need to shift the lines for edit_area.php and edit_area_handler.php in get_page_level() from 2 to 1.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Which version of MRBS are you running?
mrbs-1.11.0
You'll need to
(1) Edit the function
get_page_level()
in mrbs_auth.inc so that the linecase 'edit_room_handler.php':
appears further up and produces the result 1 instead of 2.(2) Edit edit_room.php and replace all occurrences of
is_admin()
bytrue
.It does not work
do you know another solution?
Can you post your versions of those two files here please?
they are there
Thanks. How doesn't it work? What happens?
I have a level 1 user.
You cannot create rooms, you can only view them.
I'm trying to allow level 1 users to create rooms as well as view
You will also need to edit admin.php and change
is_admin()
totrue
in the places where you want to give the level 1 users rights.okay :)
Last edit: William 2023-02-08
But when adding a new area it doesn't allow me, the same goes for adding a new room
Last edit: William 2023-02-08
Is this is a separate requirement to https://sourceforge.net/p/mrbs/patches/120/ ? Or are they one and the same?
is different
Are they two different sites?
yes
Sorry, you'll also need to shift the lines for add.php and del.php in
get_page_level()
from 2 to 1.You only asked for rooms! To create and edit areas you'll also need to shift the lines for edit_area.php and edit_area_handler.php in get_page_level() from 2 to 1.
Thank you very much for the help