- Issue created by @yobottehg
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).
Active
2.0
Code