main/core/Controller/ResourceController.php
public function unlockAction(ResourceNode $resourceNode, Request $request)
    {
        $this->restrictionsManager->unlock($resourceNode, json_decode($request->getContent(), true)['code']);

        return new JsonResponse(null, 204);
    }
public function unlockAction(ResourceNode $resourceNode, Request $request)
    {
        $this->restrictionsManager->unlock($resourceNode, json_decode($request->getContent(), true)['code']);

        return new JsonResponse(null, 204);
    }
public function unlockAction ( ResourceNode $ resourceNode , Request $ request ) { $ this -> restrictionsManager -> unlock ( $ resourceNode , json_decode ( $ request -> getContent ( ) , true ) [ 'code' ] ) ; return new JsonResponse ( null , 204 ) ; }
Submit access code.

@EXT\Route("/unlock/{id}", name="claro_resource_unlock")
@EXT\Method("POST")
@EXT\ParamConverter("resourceNode", class="ClarolineCoreBundle:Resource\ResourceNode", options={"mapping": {"id": "uuid"}})

@param ResourceNode $resourceNode
@param Request      $request

@return JsonResponse
Submit access code .