mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
Allow builtin Phame UI to be publicly viewable
Summary: These weren't open to the public even if the blog was public. Test Plan: View a blog post, blog view, and blog manage page while logged out. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14619
This commit is contained in:
parent
4e6cd90e41
commit
b2b652ef28
3 changed files with 13 additions and 3 deletions
|
@ -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');
|
||||
|
|
|
@ -4,6 +4,10 @@ final class PhameBlogViewController extends PhameBlogController {
|
|||
|
||||
private $blog;
|
||||
|
||||
public function shouldAllowPublic() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function handleRequest(AphrontRequest $request) {
|
||||
$viewer = $request->getViewer();
|
||||
$id = $request->getURIData('id');
|
||||
|
@ -158,9 +162,7 @@ final class PhameBlogViewController extends PhameBlogController {
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
final class PhamePostViewController extends PhamePostController {
|
||||
|
||||
public function shouldAllowPublic() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function handleRequest(AphrontRequest $request) {
|
||||
$viewer = $request->getViewer();
|
||||
|
||||
|
|
Loading…
Reference in a new issue