mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
Use authoritative user identity for revision author
Summary: We added a proper way to get the authoritative user a while ago, this method just never got switched to use it. Test Plan: Created a revision locally, was recognized as the revision author. Reviewed By: jungejason Reviewers: gc3, jungejason, tuomaspelkonen, aran CC: aran, jungejason Differential Revision: 566
This commit is contained in:
parent
2b8116d7ae
commit
d92f303e0c
1 changed files with 1 additions and 2 deletions
|
@ -26,7 +26,6 @@ class ConduitAPI_differential_createrevision_Method extends ConduitAPIMethod {
|
|||
return array(
|
||||
'diffid' => 'required diffid',
|
||||
'fields' => 'required dict',
|
||||
'user' => 'required guid',
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -51,7 +50,7 @@ class ConduitAPI_differential_createrevision_Method extends ConduitAPIMethod {
|
|||
$revision = DifferentialRevisionEditor::newRevisionFromConduitWithDiff(
|
||||
$fields,
|
||||
$diff,
|
||||
$request->getValue('user')); // TODO: Should be authoritative
|
||||
$request->getUser()->getPHID());
|
||||
|
||||
return array(
|
||||
'revisionid' => $revision->getID(),
|
||||
|
|
Loading…
Reference in a new issue