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:
commit
4eebe20329
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue