Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14057866
D8423.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
679 B
Referenced Files
None
Subscribers
None
D8423.diff
View Options
Index: src/applications/phame/controller/post/PhamePostEditController.php
===================================================================
--- src/applications/phame/controller/post/PhamePostEditController.php
+++ 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
Mon, Nov 18, 7:29 AM (1 d, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716580
Default Alt Text
D8423.diff (679 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