X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=RooTrait.php;h=9a929f1ec7a527cfc29d6683860cac046aa4266d;hp=5e4a8603e9c44c70113587a668c9fcc76f46a90a;hb=586e4eb470252d837ba18b67e4c3c1702131fd1d;hpb=222258cd89c719b0e099f52ce637b00fad06b6f2 diff --git a/RooTrait.php b/RooTrait.php index 5e4a8603..9a929f1e 100644 --- a/RooTrait.php +++ b/RooTrait.php @@ -171,7 +171,7 @@ trait Pman_Core_RooTrait { { if (method_exists($x, 'applyFilters')) { // DB_DataObject::debugLevel(1); - if (false === $x->applyFilters($q, $this->authUser(), $this)) { + if (false === $x->applyFilters($q, $this->authUser, $this)) { return; } } @@ -257,7 +257,7 @@ trait Pman_Core_RooTrait { $x->whereAdd("(on_id = $oid OR on_id IN ( SELECT distinct(id) FROM Documents WHERE original = $o ) )"); - continue; + continue 2; } $x->on_id = $val; @@ -281,7 +281,7 @@ trait Pman_Core_RooTrait { } - continue; + continue 2; } } if (!empty($q_filtered)) { @@ -310,7 +310,7 @@ trait Pman_Core_RooTrait { return; } - if (Pman::$permitError) { + if (self::$permitError) { return; @@ -368,7 +368,7 @@ trait Pman_Core_RooTrait { if (!method_exists($obj, 'checkPerm')) { return true; } - if ($obj->checkPerm($lvl, $this->getAuthUser(), $req)) { + if ($obj->checkPerm($lvl, $this->authUser, $req)) { return true; }