Skip to content

Commit 9cc4b3d

Browse files
committed
Don't hide drafts from users with edit permissions
Implements #15
1 parent 707d8d6 commit 9cc4b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action/show.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function handleShow(Doku_Event $event)
4444
$currentRevision = new Revision($ID, $REV ?: $INFO['currentrev']);
4545
$isPublished = $currentRevision->getStatus() === Constants::STATUS_PUBLISHED;
4646

47-
if (!$dbHelper->isPublisher($ID)) {
47+
if (!$dbHelper->isPublisher($ID) && auth_quickaclcheck($ID) < AUTH_EDIT) {
4848
$latestPublished = $currentRevision->getLatestPublishedRevision();
4949
// there is no published revision, show nothing
5050
if (!$isPublished && is_null($latestPublished)) {

0 commit comments

Comments
 (0)