projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e7a1fc
)
DataObjects/Person.php
author
Alan Knowles
<alan@roojs.com>
Thu, 30 Aug 2012 14:31:24 +0000
(22:31 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 30 Aug 2012 14:31:24 +0000
(22:31 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
02a7de8
..
66c1866
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-288,7
+288,7
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
$gm = DB_DataObject::Factory('group_members');
if (in_array($g->id,$gm->listGroupMembership($this))) {
// refresh admin groups.
$gm = DB_DataObject::Factory('group_members');
if (in_array($g->id,$gm->listGroupMembership($this))) {
// refresh admin groups.
- $gr = DB_DataObject::Factory('
Group_R
ights');
+ $gr = DB_DataObject::Factory('
group_r
ights');
$gr->applyDefs($g, 0);
}
$gr->applyDefs($g, 0);
}
@@
-429,7
+429,7
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
// ------ INIITIALIZE IF NO GROUPS ARE SET UP.
// ------ INIITIALIZE IF NO GROUPS ARE SET UP.
- $g = DB_DataObject::Factory('
Group_R
ights');
+ $g = DB_DataObject::Factory('
group_r
ights');
if (!$g->count()) {
$g->genDefault();
}
if (!$g->count()) {
$g->genDefault();
}
@@
-461,7
+461,7
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
//echo '<PRE>'; print_r($grps);var_dump($isAdmin);
// the load all the perms for those groups, and add them all together..
// then load all those
//echo '<PRE>'; print_r($grps);var_dump($isAdmin);
// the load all the perms for those groups, and add them all together..
// then load all those
- $g = DB_DataObject::Factory('
Group_R
ights');
+ $g = DB_DataObject::Factory('
group_r
ights');
$ret = $g->listPermsFromGroupIds($grps, $isAdmin);
//echo '<PRE>';print_r($ret);
return $ret;
$ret = $g->listPermsFromGroupIds($grps, $isAdmin);
//echo '<PRE>';print_r($ret);
return $ret;