// this should be doign update
$this->setFrom($ar);
- $this->checkPerm($this->id ? 'A' ? 'E', $this->authUser)) {
- $this->jerr("IMAGE UPLOAD PERMISSION DENIED");
+ if (!$this->checkPerm($this->id ? 'A' : 'E', $this->authUser)) {
+ $roo->jerr("IMAGE UPLOAD PERMISSION DENIED");
}
if (!isset($_FILES['imageUpload'])) {