private function checkActionParameterSecurity($actionParameter, $locale, $id = null)
    {
        $permission = null;
        switch ($actionParameter) {
            case 'publish':
                $permission = 'live';
                break;
        }

        if (!$permission) {
            return;
        }

        $this->get('sulu_security.security_checker')->checkPermission(
            new SecurityCondition(
                $this->getSecurityContext(),
                $locale,
                $this->getSecuredClass(),
                $id
            ),
            $permission
        );
    }