Skip to content
Snippets Groups Projects
Commit 7b5773f7 authored by Aleix Quintana's avatar Aleix Quintana
Browse files

Close #3413124: Show the preview block to editors only

parent 854f98cb
Branches 1.0.x
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ final class NewsletterIssueRenderPreviewBlock extends BlockBase implements Conta
$node->hasField($render_field) &&
$simplenews_enabled
) {
return $node->access('view', $account, TRUE);
return $node->access('edit', $account, TRUE);
}
}
return AccessResult::forbidden();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment