Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15418202
D12227.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12227.diff
View Options
diff --git a/src/applications/conpherence/controller/ConpherenceColumnViewController.php b/src/applications/conpherence/controller/ConpherenceColumnViewController.php
--- a/src/applications/conpherence/controller/ConpherenceColumnViewController.php
+++ b/src/applications/conpherence/controller/ConpherenceColumnViewController.php
@@ -56,6 +56,7 @@
$conpherence_id = null;
$conpherence_phid = null;
$latest_transaction_id = null;
+ $can_edit = false;
} else {
$this->setConpherence($conpherence);
@@ -78,6 +79,10 @@
$conpherence_id = $conpherence->getID();
$conpherence_phid = $conpherence->getPHID();
$latest_transaction_id = $latest_transaction->getID();
+ $can_edit = PhabricatorPolicyFilter::hasCapability(
+ $user,
+ $conpherence,
+ PhabricatorPolicyCapability::CAN_EDIT);
}
$response = array(
@@ -85,10 +90,7 @@
'threadID' => $conpherence_id,
'threadPHID' => $conpherence_phid,
'latestTransactionID' => $latest_transaction_id,
- 'canEdit' => PhabricatorPolicyFilter::hasCapability(
- $user,
- $conpherence,
- PhabricatorPolicyCapability::CAN_EDIT),
+ 'canEdit' => $can_edit,
);
return id(new AphrontAjaxResponse())->setContent($response);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 9:31 PM (17 h, 22 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7716034
Default Alt Text
D12227.diff (1 KB)
Attached To
Mode
D12227: Conpherence - fix possible fatal
Attached
Detach File
Event Timeline
Log In to Comment