Revision: 1360
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1360&view=rev
Author:   cimorrison
Date:     2010-06-29 20:32:42 +0000 (Tue, 29 Jun 2010)

Log Message:
-----------
Fixed bug which caused area private_override settings to be ignored in 
searches.   (The default global private_override setting from the config file 
was being used to determine whether a user was allowed access to the search 
page.  This is unnecessary as individual area settings are used by the SQL 
query to determine whether bookings should be shown in search results).

Modified Paths:
--------------
    mrbs/trunk/web/search.php

Modified: mrbs/trunk/web/search.php
===================================================================
--- mrbs/trunk/web/search.php   2010-06-18 07:54:11 UTC (rev 1359)
+++ mrbs/trunk/web/search.php   2010-06-29 20:32:42 UTC (rev 1360)
@@ -63,16 +63,6 @@
   exit;
 }
 
-// Require authenticated user if private bookings are required
-if ($private_override == "private")
-{
-  if (!getAuthorised(1))
-  {
-    showAccessDenied($day, $month, $year, $area, "");
-    exit();
-  }
-}
-
 if (!$search_str)
 {
   echo "<p class=\"error\">" . get_vocab("invalid_search") . "</p>";


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to