diff --git a/app/services/post.js b/app/services/post.js index 01f07b6..0e6a7da 100644 --- a/app/services/post.js +++ b/app/services/post.js @@ -148,7 +148,7 @@ class PostService extends SiteService { const postWillBePublished = post.status !== 'published' && postDefinition.status === 'published'; if (postWillBePublished) { - if (!user.permissions.canPublishPosts || !user.flags.isAdmin) { + if (!user.permissions.canPublishPosts && !user.flags.isAdmin) { throw new SiteError(403, 'You are not permitted to publish posts'); } }