return;
}
- $au = $this->getAuthUser();
-
$e = DB_DataObject::factory('Events');
$e->init($act,$obj,$remarks);
if ($obj->checkPerm($lvl, $this->getAuthUser(), $req)) {
return true;
}
+
return false;
}
+ function hasPerm($name, $lvl) // do we have a permission
+ {
+ static $pcache = array();
+ $au = $this->getAuthUser();
+ return $au && $au->hasPerm($name, $lvl);
+
+ }
+
function getAuthUser()
{
die('Get auth user is not implement.');
}
+
}