// this should be doign update
$this->setFrom($ar);
-
- if (method_exists(this, 'checkPerm') &&
- !$this->checkPerm('E', $this->authUser)) {
+
+ $this->checkPerm($this->id ? 'A' ? 'E', $this->authUser)) {
$this->jerr("IMAGE UPLOAD PERMISSION DENIED");
}