X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_person.php;h=a76d975fca74366eb7386e35efd6d7c1f2d8245d;hp=db602a94710aa1cfacaba1fba8d5f496274af62b;hb=d2cfff04c699ccae894eff96b59ebdc54ecb23e8;hpb=06960c8cdfa73aed8fd540930f0b76844a2c0a10 diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index db602a94..a76d975f 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -50,6 +50,9 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE + + static $authUser = false; + function owner() { @@ -347,6 +350,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject $user = $default_admin ? $default_admin->toArray() : $u->toArray(); // if we request other URLS.. then we get auto logged in.. + $_SESSION[get_class($this)][$sesPrefix .'-auth'] = serialize((object) $user); return true; }