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

FEAT #13441 TIME 0:05 Template check id

parent 8fce75c5
No related branches found
No related tags found
No related merge requests found
......@@ -282,7 +282,7 @@ class TemplateController
public function getContentById(Request $request, Response $response, array $aArgs)
{
if (!PrivilegeController::hasPrivilege(['privilegeId' => 'admin_templates', 'userId' => $GLOBALS['id']])) {
if (!Validator::intVal()->validate($aArgs['id']) || !PrivilegeController::hasPrivilege(['privilegeId' => 'admin_templates', 'userId' => $GLOBALS['id']])) {
return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);
}
......
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