Remove delete function in PhamePost

Summary: Ref T9756, removes the ability to delete a PhamePost

Test Plan: See link removed, unpublish post, publish post, new post.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9756

Differential Revision: https://secure.phabricator.com/D14581
This commit is contained in:
Chad Little
2015-11-27 14:07:46 -08:00
parent afcbbce80f
commit d880346b64
4 changed files with 0 additions and 52 deletions

View File

@@ -157,14 +157,6 @@ final class PhamePostViewController extends PhamePostController {
->setWorkflow(true));
}
$actions->addAction(
id(new PhabricatorActionView())
->setIcon('fa-times')
->setHref($this->getApplicationURI('post/delete/'.$id.'/'))
->setName(pht('Delete Post'))
->setDisabled(!$can_edit)
->setWorkflow(true));
$blog = $post->getBlog();
$can_view_live = $blog && !$post->isDraft();