/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function checkPerm($perm, $au)
+ {
+ $o = $this->object();
+ if (method_exists($o, 'hasPerm')) {
+ // edit permissions on related object needed...
+ return $o->hasPerm('E', $au);
+
+ }
+
+ return true; //// ??? not really that safe...
+
+ }
+
+
+
+
+
+
/**
* create an email from file.
* these must have been set first.
// this should be doign update
$this->setFrom($ar);
- if (method_exists(this, 'checkPerm') && !$this->checkPerm('E', $this->authUser)) {
+ if (method_exists(this, 'checkPerm') &&
+ !$this->checkPerm('E', $this->authUser)) {
$this->jerr("IMAGE UPLOAD PERMISSION DENIED");
}
$roo->jok($r->toArray());
}
+
function toEventString()
{