Skip to content
Snippets Groups Projects
Commit b58ab455 authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FIX #20175 TIME 0 change api code

parent 3e0eb382
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,7 @@ class MetaSignSignatureController ...@@ -97,7 +97,7 @@ class MetaSignSignatureController
} elseif (empty($curlResponse['response']['methods'])) { } elseif (empty($curlResponse['response']['methods'])) {
return ['code' => 500, 'errors' => "MetaSign api endpoints not found"]; return ['code' => 500, 'errors' => "MetaSign api endpoints not found"];
}elseif (!empty($curlResponse['response']['methods']) && !in_array("sigOps/signDoc", $curlResponse['response']['methods'])) { }elseif (!empty($curlResponse['response']['methods']) && !in_array("sigOps/signDoc", $curlResponse['response']['methods'])) {
return ['code' => 405, 'errors' => "User does not have access to API endpoint to 'sign document' on MetaSign"]; return ['code' => 500, 'errors' => "User does not have access to API endpoint to 'sign document' on MetaSign"];
} }
return true; return true;
} }
...@@ -314,4 +314,4 @@ class MetaSignSignatureController ...@@ -314,4 +314,4 @@ class MetaSignSignatureController
return ['signatureContent' => base64_decode($curlResponse['response']['signatureContent']['bytes'])]; return ['signatureContent' => base64_decode($curlResponse['response']['signatureContent']['bytes'])];
} }
} }
\ No newline at end of file
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