Skip to content
Snippets Groups Projects
Commit 19bfd1a8 authored by Christopher Johnson's avatar Christopher Johnson
Browse files

reverts change from method setViewer back to setUser because of upstream inconsistency

there continues to be upstream confusion between "viewer" and "user", it seems that ConduitAPIRequest does not support "viewer"...

Change-Id: I03e9b9c625d3ae86f222d1e901cd6afb29080888
parent d6d3b029
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ final class SprintCreateConduitAPIMethod extends SprintConduitAPIMethod {
}
protected function execute(ConduitAPIRequest $request) {
$user = $request->getViewer();
$user = $request->getUser();
$this->requireApplicationCapability(
ProjectCreateProjectsCapability::CAPABILITY,
......
......@@ -25,7 +25,7 @@ final class SprintGetStartEndDatesConduitAPIMethod extends SprintConduitAPIMetho
}
protected function execute(ConduitAPIRequest $request) {
$user = $request->getViewer();
$user = $request->getUser();
$query = id(new SprintQuery())
->setViewer($user);
$project = id(new PhabricatorProjectQuery())
......
......@@ -25,7 +25,7 @@ final class SprintGetTaskProjectHistoryConduitAPIMethod extends SprintConduitAPI
}
protected function execute(ConduitAPIRequest $request) {
$user = $request->getViewer();
$user = $request->getUser();
$this->requireApplicationCapability(
ProjectCreateProjectsCapability::CAPABILITY,
......
......@@ -26,7 +26,7 @@ final class SprintSetIsSprintConduitAPIMethod extends SprintConduitAPIMethod {
}
protected function execute(ConduitAPIRequest $request) {
$user = $request->getViewer();
$user = $request->getUser();
$this->requireApplicationCapability(
ProjectCreateProjectsCapability::CAPABILITY,
......
......@@ -27,7 +27,7 @@ final class SprintSetStartEndDatesConduitAPIMethod extends SprintConduitAPIMetho
}
protected function execute(ConduitAPIRequest $request) {
$user = $request->getViewer();
$user = $request->getUser();
$this->requireApplicationCapability(
ProjectCreateProjectsCapability::CAPABILITY,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment