Revision: 1224
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1224&view=rev
Author:   cimorrison
Date:     2009-10-21 18:26:48 +0000 (Wed, 21 Oct 2009)

Log Message:
-----------
Fix to ensure that view_entry uses the per-area privacy settings (problem 
reported by David Moore on the general mailing list).   Still to come: fixes 
for Search and Report which suffer from a similar problem.

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

Modified: mrbs/trunk/web/view_entry.php
===================================================================
--- mrbs/trunk/web/view_entry.php       2009-10-20 11:51:26 UTC (rev 1223)
+++ mrbs/trunk/web/view_entry.php       2009-10-21 18:26:48 UTC (rev 1224)
@@ -45,6 +45,7 @@
           $tbl_repeat.create_by,
           $tbl_room.room_name,
           $tbl_area.area_name,
+          $tbl_room.area_id,
           $tbl_repeat.type,
           $tbl_repeat.private,
           $tbl_repeat.room_id,
@@ -70,6 +71,7 @@
           $tbl_entry.description,
           $tbl_entry.create_by,
           $tbl_room.room_name,
+          $tbl_room.area_id,
           $tbl_area.area_name,
           $tbl_entry.type,
           $tbl_entry.private,
@@ -103,6 +105,10 @@
 $row = sql_row_keyed($res, 0);
 sql_free($res);
 
+// Get the area settings for the entry's area.   In particular we want
+// to know how to display private/public bookings in this area.
+get_area_settings($row['area_id']);
+
 $name         = htmlspecialchars($row['name']);
 $description  = htmlspecialchars($row['description']);
 $create_by    = htmlspecialchars($row['create_by']);


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

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to