Rooms Management fail

Discuss everything related to PHP Hotel Site. All versions. Any questions related to the PHP Hotel Site developing or using should be posted to this forum.

Moderator: alexandrleonenko

nolos
Newbie
Newbie
Posts: 8
Joined: Aug 4th, '16, 00:53

Rooms Management fail

Postby nolos » Aug 4th, '16, 01:04

when a hotel owner clicks on Rooms Management, it says You are not authorized to view this page. Is there somewhere I need to allow this?

administrator
Site Admin
Site Admin
Posts: 6105
Joined: Jan 7th, '09, 23:18
Contact:

Re: Rooms Management fail

Postby administrator » Aug 4th, '16, 06:16

What version do you speak about?

administrator
Site Admin
Site Admin
Posts: 6105
Joined: Jan 7th, '09, 23:18
Contact:

Re: Rooms Management fail

Postby administrator » Aug 4th, '16, 06:17

What version do you speak about?
check in this file at the top - what roles are permitted to access it?

nolos
Newbie
Newbie
Posts: 8
Joined: Aug 4th, '16, 00:53

Re: Rooms Management fail

Postby nolos » Aug 4th, '16, 14:05

I am using the Hotel site on version 4.4.3. Thank you

administrator
Site Admin
Site Admin
Posts: 6105
Joined: Jan 7th, '09, 23:18
Contact:

Re: Rooms Management fail

Postby administrator » Aug 8th, '16, 12:08

Check in admin/modules/mod_rooms_management.php
at the top of the file you have following:

Code: Select all

if(Modules::IsModuleInstalled('rooms') &&
  ($objLogin->IsLoggedInAs('owner','mainadmin') || ($objLogin->IsLoggedInAs('hotelowner') && $objLogin->HasPrivileges('edit_hotel_rooms')))
){

nolos
Newbie
Newbie
Posts: 8
Joined: Aug 4th, '16, 00:53

Re: Rooms Management fail

Postby nolos » Aug 8th, '16, 16:54

Working now. Thanks.


Return to “ApPHP HotelSite / uHotelBooking Talk {developers/users}”