mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
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
This commit is contained in:
parent
c505876d61
commit
32af1d9a9f
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,11 @@ final class PhortuneMerchantEditEngine
|
|||
return false;
|
||||
}
|
||||
|
||||
protected function getCreateNewObjectPolicy() {
|
||||
return $this->getApplication()->getPolicy(
|
||||
PhortuneMerchantCapability::CAPABILITY);
|
||||
}
|
||||
|
||||
protected function buildCustomEditFields($object) {
|
||||
$viewer = $this->getViewer();
|
||||
|
||||
|
|
Loading…
Reference in a new issue