0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Merge pull request #1164 from halfdan/1162-unpublished-posts

Unpublished Post should not be accessible
This commit is contained in:
Hannah Wolfe 2013-10-25 13:18:39 -07:00
commit 4eebe20329

View file

@ -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 {