diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-02-23 08:49:08 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-02-23 08:49:08 -0500 |
commit | 1a2c97886f7335509ed1e1f65aff4464a32e01eb (patch) | |
tree | 2ac208c9fdfe59a8be661b6d33af27f7429b02be /mod/blog/start.php | |
parent | 9bda5425d8a1e33ce42ea11de12918706768c39b (diff) | |
download | elgg-1a2c97886f7335509ed1e1f65aff4464a32e01eb.tar.gz elgg-1a2c97886f7335509ed1e1f65aff4464a32e01eb.tar.bz2 |
Fixes #5012 drafts are private now
Diffstat (limited to 'mod/blog/start.php')
-rw-r--r-- | mod/blog/start.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php index eb6eee05f..a6ff84355 100644 --- a/mod/blog/start.php +++ b/mod/blog/start.php @@ -214,7 +214,14 @@ function blog_entity_menu_setup($hook, $type, $return, $params) { return $return; } - if ($entity->canEdit() && $entity->status != 'published') { + if ($entity->status != 'published') { + // draft status replaces access + foreach ($return as $index => $item) { + if ($item->getName() == 'access') { + unset($return[$index]); + } + } + $status_text = elgg_echo("blog:status:{$entity->status}"); $options = array( 'name' => 'published_status', |