Merge pull request 'fix spelling in post service' (#8) from cybershell-patch-1 into develop

Reviewed-on: https://git.digitaltelepresence.com/digital-telepresence/dtp-sites/pulls/8
master
CyberShell 2 years ago
commit 12f38afc27

@ -66,7 +66,7 @@ class PostService extends SiteService {
if (!author.permissions.canAuthorPosts) {
throw new SiteError(403, 'You are not permitted to author posts');
}
if ((postDefinition.status === 'published') && !author.permisstions.canPublishPosts) {
if ((postDefinition.status === 'published') && !author.permissions.canPublishPosts) {
throw new SiteError(403, 'You are not permitted to publish posts');
}

Loading…
Cancel
Save