canDo('payment.gateway.report.povote')) { return true; } return false; } /** * Determine if the given user can approve the given gateway. * * @param UserPolicyInterface $authUser * * @return bool */ public function report(UserPolicyInterface $authUser) { if ($authUser->canDo('payment.gateway.report')) { return true; } return false; } /** * Determine if the given user can approve the given gateway. * * @param UserPolicyInterface $authUser * * @return bool */ public function download(UserPolicyInterface $authUser) { if ($authUser->canDo('payment.gateway.report.download')) { return true; } return false; } }