Skip to content
Snippets Groups Projects
Verified Commit efb11a4d authored by Damien's avatar Damien
Browse files

FIX Unsign file

parent fe07aaac
No related branches found
No related tags found
No related merge requests found
......@@ -123,11 +123,7 @@ class SignatureBookController
if (!Validator::stringType()->notEmpty()->validate($data['table'])) {
return $response->withStatus(400)->withJson(['errors' => 'Bad Request']);
}
if (!ResController::hasRightByResId(['resId' => [$aArgs['resId']], 'userId' => $GLOBALS['userId']])) {
return $response->withStatus(403)->withJson(['errors' => 'Document out of perimeter']);
}
//TODO Check les droits de modif
AttachmentModel::unsignAttachment(['table' => $data['table'], 'resId' => $aArgs['resId']]);
$isVersion = ($data['table'] == 'res_attachments' ? 'false' : 'true');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment