projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd62a7
)
DataObjects/Core_person.php
author
Alan Knowles
<alan@roojs.com>
Thu, 2 Aug 2018 09:44:45 +0000
(17:44 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 2 Aug 2018 09:44:45 +0000
(17:44 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
c076434
..
cc17f71
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-1383,6
+1383,8
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
function beforeUpdate($old, $q, $roo)
{
+
+
if(!empty($q['_generate_oath_key'])){
$o = clone($this);
$this->generateOathKey();
@@
-1402,6
+1404,19
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
if(!empty($q['membership_list'])){
+
+ if ($roo->authUser->id == $old->id) {
+ // you are editing yourself...
+
+ // if was admin before....
+ // -if new membership does not icnlude admin id
+ // -- then show error
+
+
+ }
+
+
+
$pid = $q['id'];
$x = PDO_DataObject::factory('core_group_member');