From c0083126702664753b33fc7da9a660d64ab1f34d Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Fri, 18 Oct 2013 17:18:49 +0000 Subject: [PATCH] Unpublished Post should not be accessible fixes #1162 --- ghost/admin/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/router.js b/ghost/admin/router.js index 0db5937052..b6e0fce352 100644 --- a/ghost/admin/router.js +++ b/ghost/admin/router.js @@ -58,7 +58,7 @@ post.urlRoot = Ghost.settings.apiRoot + '/posts'; if (id) { post.id = id; - post.fetch().then(function () { + post.fetch({ data: {status: 'all'}}).then(function () { Ghost.currentView = new Ghost.Views.Editor({ el: '#main', model: post }); }); } else {