@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Let requestors claim their code is picked

Summary:
In Releeph, `ReleephRequestHeaderView` will render you a "mark-manually-picked" button if (a) you are authoritative (chuckr) or (b) you are the person who created this Releeph request.

However `ReleephRequestActionController`, which handles these button presses, will only do something if you are (a). This patch honors your button pressing if you are (b) as well.

Test Plan: Push buttons. There's another bug in the Javascript do-stuff-without-reloading-the-page code that handles these button pushes, but I'd like to fix that separately from handling this hi-pri bug.

Reviewers: epriestley, wez

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D6036

+8 -4
+8 -4
src/applications/releeph/controller/request/ReleephRequestActionController.php
··· 49 49 50 50 case 'mark-manually-picked': 51 51 case 'mark-manually-reverted': 52 - if (!$releeph_project->isAuthoritative($user)) { 52 + if ( 53 + $releeph_request->getRequestUserPHID() === $user->getPHID() || 54 + $releeph_project->isAuthoritative($user)) { 55 + 56 + // We're all good! 57 + } else { 53 58 throw new Exception( 54 - "Bug! Only authoritative users (pushers, or users in pusherless ". 55 - "Releeph projects) can manually change a request's in-branch ". 56 - "status!"); 59 + "Bug! Only pushers or the requestor can manually change a ". 60 + "request's in-branch status!"); 57 61 } 58 62 59 63 if ($action === 'mark-manually-picked') {