getUser($request); if ($entry->user_id !== $user->id) { throw new AuthorizationFailedException(); } return $this->getContentResponse($entry); } }