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