getUser($request), $resource)) { throw new AuthorizationFailedException(); } $resource->type->deleteCustomFile($args['id']); return $response; } }