Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18625010
D8423.id20001.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
691 B
Referenced Files
None
Subscribers
None
D8423.id20001.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sep 16 2025, 9:39 PM (6 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8890168
Default Alt Text
D8423.id20001.diff (691 B)
Attached To
Mode
D8423: When creating a new Phame blog post, check that the author has permission to post to the blog
Attached
Detach File
Event Timeline
Log In to Comment