#PHRAS-325 #time 3h

added parameter "nosubdef" to route "/api/v1/records/add"
nb : does NOT prevent creation of subdef if file passes thru the quarantine.
This commit is contained in:
Jean-Yves Gaulier
2015-02-02 17:04:54 +01:00
parent 138008f7c6
commit 6449c58e17
3 changed files with 8 additions and 8 deletions

View File

@@ -494,8 +494,7 @@ class API_V1_adapter extends API_V1_Abstract
throw new API_V1_exception_badrequest(sprintf('Invalid forceBehavior value `%s`', $request->get('forceBehavior')));
break;
}
$app['border-manager']->process($session, $Package, $callback, $behavior);
$app['border-manager']->process($session, $Package, $callback, $behavior, $request->get('nosubdef')==='');
$ret = array(
'entity' => null,