@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.

Restrict PhortuneMerchant creation at EditEngine level

Summary: Ref T12685. Checks merchant capabilities at the edit engine level

Test Plan: Test with and without admin level permissions. Get restricted access if I cheat. Still able to create with admin.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T12685

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

+5
+5
src/applications/phortune/editor/PhortuneMerchantEditEngine.php
··· 65 65 return false; 66 66 } 67 67 68 + protected function getCreateNewObjectPolicy() { 69 + return $this->getApplication()->getPolicy( 70 + PhortuneMerchantCapability::CAPABILITY); 71 + } 72 + 68 73 protected function buildCustomEditFields($object) { 69 74 $viewer = $this->getViewer(); 70 75