Page MenuHomePhabricator

D14619.id35365.diff
No OneTemporary

D14619.id35365.diff

diff --git a/src/applications/phame/controller/blog/PhameBlogManageController.php b/src/applications/phame/controller/blog/PhameBlogManageController.php
--- a/src/applications/phame/controller/blog/PhameBlogManageController.php
+++ b/src/applications/phame/controller/blog/PhameBlogManageController.php
@@ -2,6 +2,10 @@
final class PhameBlogManageController extends PhameBlogController {
+ public function shouldAllowPublic() {
+ return true;
+ }
+
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();
$id = $request->getURIData('id');
diff --git a/src/applications/phame/controller/blog/PhameBlogViewController.php b/src/applications/phame/controller/blog/PhameBlogViewController.php
--- a/src/applications/phame/controller/blog/PhameBlogViewController.php
+++ b/src/applications/phame/controller/blog/PhameBlogViewController.php
@@ -4,6 +4,10 @@
private $blog;
+ public function shouldAllowPublic() {
+ return true;
+ }
+
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();
$id = $request->getURIData('id');
@@ -158,9 +162,7 @@
id(new PhabricatorActionView())
->setIcon('fa-pencil')
->setHref($this->getApplicationURI('blog/manage/'.$blog->getID().'/'))
- ->setName(pht('Manage Blog'))
- ->setDisabled(!$can_edit)
- ->setWorkflow(!$can_edit));
+ ->setName(pht('Manage Blog')));
return $actions;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 8, 8:02 PM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7384171
Default Alt Text
D14619.id35365.diff (1 KB)

Event Timeline