projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b27785e
)
DataObjects/Person.php
author
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2012 03:11:16 +0000
(11:11 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2012 03:11:16 +0000
(11:11 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
a857b12
..
0a9840c
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-809,10
+809,7
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
}
function onInsert($req, $roo)
{
- $p = DB_DataObject::factory('Person');
-
- print_R($roo->authUser->id);
- exit;
+
if ($roo->authUser->id < 0 && $p->count() == 1) {
// this seems a bit risky...