From d0834c63735572129635650b5a95d590e9d99463 Mon Sep 17 00:00:00 2001 From: Andrew Woodlee Date: Thu, 5 Jan 2023 20:02:47 -0600 Subject: [PATCH] fix for if statement in post service --- app/services/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } }