Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/post/PhamePostEditController.php
| Show All 30 Lines | if ($id) { | ||||
| $post->getPHID()); | $post->getPHID()); | ||||
| } else { | } else { | ||||
| $blog = id(new PhameBlogQuery()) | $blog = id(new PhameBlogQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withIDs(array($request->getInt('blog'))) | ->withIDs(array($request->getInt('blog'))) | ||||
| ->requireCapabilities( | ->requireCapabilities( | ||||
| array( | array( | ||||
| PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
| PhabricatorPolicyCapability::CAN_JOIN, | PhabricatorPolicyCapability::CAN_EDIT, | ||||
| )) | )) | ||||
| ->executeOne(); | ->executeOne(); | ||||
| if (!$blog) { | if (!$blog) { | ||||
| return new Aphront404Response(); | return new Aphront404Response(); | ||||
| } | } | ||||
| $v_projects = array(); | $v_projects = array(); | ||||
| $v_cc = array(); | $v_cc = array(); | ||||
| ▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines | |||||