Verified Commit d7219049 authored by Damien's avatar Damien

FEAT #10769 TIME 0:10 Lang

parent 4db4e649
......@@ -124,6 +124,7 @@
"userUpdated" : "User updated",
"userDeleted" : "User deleted",
"userViewed" : "User viewed",
"userHasCurrentDocuments" : "User has current documents",
"validate" : "Validate",
"validateAnnotation" : "Validate the annotation",
"validateDocumentWithoutSignOrNote" : "You are about to validate this document without signature or annotation!",
......
......@@ -124,6 +124,7 @@
"userUpdated" : "Utilisateur modifié",
"userDeleted" : "Utilisateur supprimé",
"userViewed" : "Utilisateur consulté",
"userHasCurrentDocuments" : "L'utilisateur à des documents en cours",
"validate" : "Valider",
"validateAnnotation" : "Valider l'annotation",
"validateDocumentWithoutSignOrNote" : "Vous êtes sur le point de valider ce document sans signature ou annotation !",
......
......@@ -248,7 +248,7 @@ class UserController
'data' => [array_merge([$args['id']], $allSubstitutedUsers)]
]);
if (!empty($workflows)) {
return $response->withStatus(400)->withJson(['errors' => 'User has current workflows']);
return $response->withStatus(400)->withJson(['errors' => 'User has current documents', 'lang' => 'userHasCurrentDocuments']);
}
//Workflows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment