projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
773a224
)
Pman/Roo.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 17 Nov 2010 10:29:22 +0000
(18:29 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 17 Nov 2010 10:29:22 +0000
(18:29 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
46bcb61
..
9a9406f
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-566,7
+566,20
@@
class Pman_Roo extends Pman
while ($x->fetch()) {
$xx = clone($x);
while ($x->fetch()) {
$xx = clone($x);
+
+
+
+ if (method_exists($x, 'checkPerm') && !$x->checkPerm('D', $this->authUser)) {
+ $this->jerr("PERMISSION DENIED");
+ }
+
+
+ if ( method_exists($xx, 'beforeDelete') && ($xx->beforeDelete() === false)) {
+ $errs[] = "Delete failed ({$xx->id})\n". (isset($xx->err) ? $xx->err : '');
+ continue;
+ }
+
foreach($affects as $k=> $true) {
$ka = explode('.', $k);
$chk = DB_DataObject::factory($ka[0]);
foreach($affects as $k=> $true) {
$ka = explode('.', $k);
$chk = DB_DataObject::factory($ka[0]);
@@
-579,17
+592,8
@@
class Pman_Roo extends Pman
}
}
}
}
-
-
- if (method_exists($x, 'checkPerm') && !$x->checkPerm('D', $this->authUser)) {
- $this->jerr("PERMISSION DENIED");
- }
-
$this->addEvent("DELETE", $x, $x->toEventString());
$this->addEvent("DELETE", $x, $x->toEventString());
- if ( method_exists($xx, 'beforeDelete') && ($xx->beforeDelete() === false)) {
- $errs[] = "Delete failed ({$xx->id})\n". (isset($xx->err) ? $xx->err : '');
- continue;
- }
+
$xx->delete();
}
if ($errs) {
$xx->delete();
}
if ($errs) {