meeting-room-booking-system / mrbs-code

MRBS application code
Other
127 stars 62 forks source link

Add authentication to Search.php #1720

Open jberanek opened 8 years ago

jberanek commented 8 years ago

Hello All,

Is there any chance I add authentification to search.php. I used the following code for index if (!getAuthorised(1))

{

showAccessDenied($day, $month, $year, $area, "");

exit();

} Thank you

Reported by: *anonymous

Original Ticket: mrbs/support-requests/997

jberanek commented 8 years ago

In mrbs_auth.inc change the line

$page_level['search.php']                = ($auth['deny_public_access']) ? 1 : 0;

to

$page_level['search.php']                = 1;

Original comment by: campbell-m

jberanek commented 8 years ago

Thank you very much, Can I ask you please If I can add a rest php page before access MRBS just for internal authentification ?

Original comment by: *anonymous