Skip to content

Commit 0722c52

Browse files
committed
core (fix) view unpublished doc when auth in admin
1 parent 68f4dea commit 0722c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/Core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2978,7 +2978,7 @@ public function prepareResponse()
29782978
public function _sendErrorForUnpubPage()
29792979
{
29802980
// Can't view unpublished pages !$this->checkPreview()
2981-
if (!$this->hasPermission('view_unpublished')) {
2981+
if (!$this->hasPermission('view_unpublished', 'mgr') && !$this->hasPermission('view_unpublished')) {
29822982
$this->sendErrorPage();
29832983
return;
29842984
}

0 commit comments

Comments
 (0)