Esempio n. 1
0
 protected function innerUpdate($ID, &$fields, &$errors, array $params = null)
 {
     if (!CCrmProduct::CheckUpdatePermission($ID)) {
         $errors[] = 'Access denied.';
         return false;
     }
     $result = CCrmProductSection::Update($ID, $fields);
     if ($result !== true) {
         $errors[] = CCrmProductSection::GetLastError();
     }
     return $result;
 }