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

FEAT #15558 TIME 0:35 Block languages routes

parent a5bf5ae4
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,9 @@ class LanguageController
public function generateLang(Request $request, Response $response)
{
if (!is_file('dist/main.js')) {
return $response->withStatus(403)->withJson(['errors' => 'Route forbidden']);
}
$body = $request->getParsedBody();
if (!Validator::stringType()->notEmpty()->validate($body['langId'])) {
......
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