|
|
|
@ -42,9 +42,11 @@ class PostService extends SiteService {
|
|
|
|
|
async createPlaceholder (author) {
|
|
|
|
|
const NOW = new Date();
|
|
|
|
|
|
|
|
|
|
if (!author.permissions.canAuthorPosts || !author.flags.isAdmin) {
|
|
|
|
|
if (!author.flags.isAdmin){
|
|
|
|
|
if (!author.permissions.canAuthorPosts) {
|
|
|
|
|
throw new SiteError(403, 'You are not permitted to author posts');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let post = new Post();
|
|
|
|
|
post.created = NOW;
|
|
|
|
|