DataObjects/Events.php
authoredward <edward@roojs.com>
Mon, 16 Oct 2017 03:13:24 +0000 (11:13 +0800)
committeredward <edward@roojs.com>
Mon, 16 Oct 2017 03:13:24 +0000 (11:13 +0800)
DataObjects/Events.php

index d04ee78..97aaaaf 100644 (file)
@@ -100,7 +100,8 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         if (!$au->hasPerm("Admin.Admin_Tab", 'S')) {
             //DB_DataObject::DebugLevel(1);
             // they can only view their changes..
-            $this->person_id = $au->id;
+            $this->whereAdd("($tn.person_id = {$au->id} OR $tn.person_id = 0)");
+//            $this->person_id = $au->id;
             
         }
         // _join = tablename,tablename...