meeting-room-booking-system / mrbs-code

MRBS application code
Other
127 stars 63 forks source link

Only "admin" rights user can add or edit rooms, meetings, etc #1349

Open jberanek opened 10 years ago

jberanek commented 10 years ago

Hi there,

I want to set a condition that only admin rights users can add or edit rooms, meetings etc, so how can i do this and please tell me one more thing how can i add buildings in front end or only i add buildings in DB

Reported by: *anonymous

Original Ticket: mrbs/support-requests/616

jberanek commented 10 years ago

The best way to add areas and rooms is through the front end. Just login as an admin and go to the "Rooms" page. I do not advise trying to add them through the database.

By default only admins can add or edit rooms. And by default only an admin can edit a meeting other than than their own. But if you want to stop ordinary users from creating their own meetings then set

$auth['only_admin_can_book'] = TRUE;

in your config file.

Original comment by: campbell-m

jberanek commented 10 years ago

ok i'll try this

Original comment by: *anonymous

jberanek commented 10 years ago

thanx alot bro .... Two more things How can i add buildings(area), i mean where can i go and add new building or edit

Second can i also set that only users level (1 and 2) can add and edit rooms and meetings ... hope you don't bother about this......

Original comment by: *anonymous

jberanek commented 10 years ago

ok i got this that how can i add building ... just give me my second solution please

Original comment by: *anonymous

jberanek commented 10 years ago

You add or edit areas by going to the Rooms page.

In standard MRBS ordinary users are Level 1 and admins are Level 2. I thought you only wanted admins to be able to add and edit rooms and meetings?

Original comment by: campbell-m

jberanek commented 10 years ago

yes I really want this, But if (in future) i want that only users level(1, 2) can add or edit, how can i do this

Original comment by: *anonymous

jberanek commented 10 years ago

If you want Level 1 users to be able to edit their own bookings then set

$auth['only_admin_can_book'] = FALSE;

If you want Level 1 users also to be able to edit other peoples' bookings and also edit rooms, then make them admins.

Original comment by: campbell-m

jberanek commented 10 years ago

ok thanx alot bro

Original comment by: *anonymous