Page MenuHomePhabricator

D8423.id20001.diff
No OneTemporary

D8423.id20001.diff

diff --git a/src/applications/phame/controller/post/PhamePostEditController.php b/src/applications/phame/controller/post/PhamePostEditController.php
--- a/src/applications/phame/controller/post/PhamePostEditController.php
+++ b/src/applications/phame/controller/post/PhamePostEditController.php
@@ -36,6 +36,11 @@
$blog = id(new PhameBlogQuery())
->setViewer($user)
->withIDs(array($request->getInt('blog')))
+ ->requireCapabilities(
+ array(
+ PhabricatorPolicyCapability::CAN_VIEW,
+ PhabricatorPolicyCapability::CAN_JOIN,
+ ))
->executeOne();
if (!$blog) {
return new Aphront404Response();

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 23, 8:33 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7719000
Default Alt Text
D8423.id20001.diff (691 B)

Event Timeline