Skip to content

Commit 9f3ad2f

Browse files
myovchevharoun
andauthored
Update modules/@apostrophecms/doc/index.js
Co-authored-by: haroun <[email protected]>
1 parent 8aa5d8c commit 9f3ad2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/@apostrophecms/doc/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ module.exports = {
207207
if (info.options.permissions !== false) {
208208
if (!self.apos.permission.can(
209209
req,
210-
info.options.autopublishing ? 'edit' : 'publish', info.draft
210+
info.options.autopublishing ? 'edit' : 'publish',
211+
info.draft
211212
)) {
212213
throw self.apos.error('forbidden');
213214
}

0 commit comments

Comments
 (0)