Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15293602
D7858.id17772.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
666 B
Referenced Files
None
Subscribers
None
D7858.id17772.diff
View Options
Index: src/applications/policy/query/PhabricatorPolicyQuery.php
===================================================================
--- src/applications/policy/query/PhabricatorPolicyQuery.php
+++ src/applications/policy/query/PhabricatorPolicyQuery.php
@@ -190,6 +190,11 @@
foreach ($projects as $project) {
$phids[] = $project->getPHID();
}
+
+ // Include the "current viewer" policy. This improves consistency, but
+ // is also useful for creating private instances of normally-shared object
+ // types, like repositories.
+ $phids[] = $viewer->getPHID();
}
$capabilities = $this->object->getCapabilities();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 6, 4:28 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7229453
Default Alt Text
D7858.id17772.diff (666 B)
Attached To
Mode
D7858: Always include the current user as a selectable policy
Attached
Detach File
Event Timeline
Log In to Comment