Allow to export unpublished draft entities

Created on 24 March 2023, about 2 years ago

For automated integration testing purposes we want to export unpublished drafts using default_content. However this throws a permission error. Exporting them as published works. Importing them as unpublished draft also works.

Exporting an unpublished draft via drush dcer command throws an permission error.

Attached the exported content file.

Error that is thrown is:


drush dcer node 7 --folder=/app/cms/web/modules/custom/ksb_default_content/content
 [warning] Path: node/7. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: The 'view any unpublished content' permission is required. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 112 of /app/cms/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇨🇭Switzerland yobottehg Basel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024