Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no bug - Update Phabricator to Upstream 2023 Week 7 #36

Merged
merged 3 commits into from
Feb 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/__phutil_library_map__.php
Original file line number Diff line number Diff line change
@@ -2013,7 +2013,6 @@
'OwnersConduitAPIMethod' => 'applications/owners/conduit/OwnersConduitAPIMethod.php',
'OwnersEditConduitAPIMethod' => 'applications/owners/conduit/OwnersEditConduitAPIMethod.php',
'OwnersPackageReplyHandler' => 'applications/owners/mail/OwnersPackageReplyHandler.php',
'OwnersQueryConduitAPIMethod' => 'applications/owners/conduit/OwnersQueryConduitAPIMethod.php',
'OwnersSearchConduitAPIMethod' => 'applications/owners/conduit/OwnersSearchConduitAPIMethod.php',
'PHIDConduitAPIMethod' => 'applications/phid/conduit/PHIDConduitAPIMethod.php',
'PHIDInfoConduitAPIMethod' => 'applications/phid/conduit/PHIDInfoConduitAPIMethod.php',
@@ -8255,7 +8254,6 @@
'OwnersConduitAPIMethod' => 'ConduitAPIMethod',
'OwnersEditConduitAPIMethod' => 'PhabricatorEditEngineAPIMethod',
'OwnersPackageReplyHandler' => 'PhabricatorMailReplyHandler',
'OwnersQueryConduitAPIMethod' => 'OwnersConduitAPIMethod',
'OwnersSearchConduitAPIMethod' => 'PhabricatorSearchEngineAPIMethod',
'PHIDConduitAPIMethod' => 'ConduitAPIMethod',
'PHIDInfoConduitAPIMethod' => 'PHIDConduitAPIMethod',
166 changes: 0 additions & 166 deletions src/applications/owners/conduit/OwnersQueryConduitAPIMethod.php

This file was deleted.

13 changes: 10 additions & 3 deletions src/applications/pholio/xaction/PholioImageFileTransaction.php
Original file line number Diff line number Diff line change
@@ -107,11 +107,18 @@ public function extractFilePHIDs($object, $value) {
// including old file PHIDs) because we currently don't have a storage
// object when called. This might change at some point.

$new_phids = $value;
$image_changes = $value;

$image_phids = array();
foreach ($image_changes as $change_type => $phids) {
foreach ($phids as $phid) {
$image_phids[$phid] = $phid;
}
}

$file_phids = array();
foreach ($new_phids as $phid) {
$file_phids[] = $editor->loadPholioImage($object, $phid)
foreach ($image_phids as $image_phid) {
$file_phids[] = $editor->loadPholioImage($object, $image_phid)
->getFilePHID();
}

Original file line number Diff line number Diff line change
@@ -42,6 +42,19 @@ public function handleRequest(AphrontRequest $request) {
}

$named_query = $engine->getBuiltinQuery($key);

// After loading a global query, make sure the viewer actually has
// permission to view and edit it.

PhabricatorPolicyFilter::requireCapability(
$viewer,
$named_query,
PhabricatorPolicyCapability::CAN_VIEW);

PhabricatorPolicyFilter::requireCapability(
$viewer,
$named_query,
PhabricatorPolicyCapability::CAN_EDIT);
}

$builtin = null;