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