We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aa5d8c commit 9f3ad2fCopy full SHA for 9f3ad2f
modules/@apostrophecms/doc/index.js
@@ -207,7 +207,8 @@ module.exports = {
207
if (info.options.permissions !== false) {
208
if (!self.apos.permission.can(
209
req,
210
- info.options.autopublishing ? 'edit' : 'publish', info.draft
+ info.options.autopublishing ? 'edit' : 'publish',
211
+ info.draft
212
)) {
213
throw self.apos.error('forbidden');
214
}
0 commit comments