From 23c88d250e6781dad070a3c19c6acb32f8280c5b Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Wed, 11 May 2022 17:52:06 +0200 Subject: [PATCH] Readded notEnoughPermission message in post model (#14759) no issue The message was removed somewhere, but the git history looks to be modified so I couldn't find the reference to when and why it was removed (the message seems to be added and removed in the same commit). Added in: https://github.com/tryghost/Ghost/commit/e84916747248720a5726b627412f9a8ac5e56935 No reference to where it was removed. But after the same commit above, it wasn't present any longer. --- core/server/models/post.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/server/models/post.js b/core/server/models/post.js index 2d92e49848..3ccb26d81a 100644 --- a/core/server/models/post.js +++ b/core/server/models/post.js @@ -21,7 +21,8 @@ const messages = { isAlreadyPublished: 'Your post is already published, please reload your page.', valueCannotBeBlank: 'Value in {key} cannot be blank.', expectedPublishedAtInFuture: 'Date must be at least {cannotScheduleAPostBeforeInMinutes} minutes in the future.', - untitled: '(Untitled)' + untitled: '(Untitled)', + notEnoughPermission: 'You do not have permission to perform this action' }; const MOBILEDOC_REVISIONS_COUNT = 10;