projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2360c62
)
DataObjects/Person.php
author
Alan Knowles
<alan@akkbhome.com>
Thu, 14 Apr 2011 00:30:20 +0000
(08:30 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Thu, 14 Apr 2011 00:30:20 +0000
(08:30 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
20bf36e
..
356ff83
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-512,7
+512,17
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
return "Duplicate Email found";
}
return true;
- }
+ }
+
+
+ /***
+ * Check if the a user has access to modify this item.
+ * @param String $lvl Level (eg. Core.Projects)
+ * @param Pman_Core_DataObjects_Person $au The authenticated user.
+ * @param boolean $changes alllow changes???
+ *
+ * @return false if no access..
+ */
function checkPerm($lvl, $au, $changes=false) //heck who is trying to access this. false == access denied..
{