projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
370a77c
)
DataObjects/Events.php
author
edward
<edward@roojs.com>
Mon, 16 Oct 2017 03:13:24 +0000
(11:13 +0800)
committer
edward
<edward@roojs.com>
Mon, 16 Oct 2017 03:13:24 +0000
(11:13 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
d04ee78
..
97aaaaf
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-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...