projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fbccc0
)
DataObjects/Person.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Nov 2011 07:45:12 +0000
(15:45 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Nov 2011 07:45:12 +0000
(15:45 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
9c5da0c
..
87c90a4
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-245,7
+245,19
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
{
$this->isAuth(); // force session start..
$this->verifyAuth();
- $db = $this->getDatabaseConnection();
+ $db = $this->getDatabaseConnection();
+
+
+ $g = DB_DataObject::factory('Groups');
+ $g->type = 0;
+ $g->get('name', 'Administrators');
+ if (in_array($g->id,$this->groups('id'))) {
+ // refresh admin groups.
+
+ }
+
+
+
$sesPrefix = $db->dsn['database'];
$_SESSION[__CLASS__][$sesPrefix .'-auth'] = serialize($this);