Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/codex/PhortunePaymentMethodPolicyCodex.php
- This file was added.
<?php | |||||
final class PhortunePaymentMethodPolicyCodex | |||||
extends PhabricatorPolicyCodex { | |||||
public function getPolicySpecialRuleDescriptions() { | |||||
$object = $this->getObject(); | |||||
$rules = array(); | |||||
$rules[] = $this->newRule() | |||||
->setCapabilities( | |||||
array( | |||||
PhabricatorPolicyCapability::CAN_VIEW, | |||||
)) | |||||
->setIsActive(true) | |||||
->setDescription( | |||||
pht( | |||||
'Account members may view and edit payment methods.')); | |||||
$rules[] = $this->newRule() | |||||
->setCapabilities( | |||||
array( | |||||
PhabricatorPolicyCapability::CAN_VIEW, | |||||
)) | |||||
->setIsActive(true) | |||||
->setDescription( | |||||
pht( | |||||
'Merchants you have a relationship with may view associated '. | |||||
'payment methods.')); | |||||
return $rules; | |||||
} | |||||
} |