Page MenuHomePhabricator

D20684.diff
No OneTemporary

D20684.diff

diff --git a/src/applications/slowvote/conduit/SlowvoteInfoConduitAPIMethod.php b/src/applications/slowvote/conduit/SlowvoteInfoConduitAPIMethod.php
--- a/src/applications/slowvote/conduit/SlowvoteInfoConduitAPIMethod.php
+++ b/src/applications/slowvote/conduit/SlowvoteInfoConduitAPIMethod.php
@@ -27,8 +27,14 @@
}
protected function execute(ConduitAPIRequest $request) {
+ $viewer = $this->getViewer();
+
$poll_id = $request->getValue('poll_id');
- $poll = id(new PhabricatorSlowvotePoll())->load($poll_id);
+
+ $poll = id(new PhabricatorSlowvoteQuery())
+ ->setViewer($viewer)
+ ->withIDs(array($poll_id))
+ ->executeOne();
if (!$poll) {
throw new ConduitException('ERR_BAD_POLL');
}

File Metadata

Mime Type
text/plain
Expires
Sun, May 12, 4:16 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6288689
Default Alt Text
D20684.diff (742 B)

Event Timeline