canDo('aml.edd.approve')) { return true; } return false; } /** * Determine if the given user can approve the given edd. * * @param UserPolicyInterface $authUser * * @return bool */ public function submit(UserPolicyInterface $authUser, Edd $edd) { if ($authUser->canDo('aml.edd.submit')) { return true; } return false; } /** * Determine if the given user can approve the given edd. * * @param UserPolicyInterface $authUser * * @return bool */ public function publish(UserPolicyInterface $authUser, Edd $edd) { if ($authUser->canDo('aml.edd.publish')) { return true; } return false; } /** * Determine if the given user can approve the given edd. * * @param UserPolicyInterface $authUser * * @return bool */ public function unpublish(UserPolicyInterface $authUser, Edd $edd) { if ($authUser->canDo('aml.edd.unpublish')) { return true; } return false; } /** * Determine if the given user can approve the given edd. * * @param UserPolicyInterface $authUser * * @return bool */ public function archive(UserPolicyInterface $authUser, Edd $edd) { if ($authUser->canDo('aml.edd.archive')) { return true; } return false; } /** * Determine if the given user can approve the given edd. * * @param UserPolicyInterface $authUser * * @return bool */ public function unarchive(UserPolicyInterface $authUser, Edd $edd) { if ($authUser->canDo('aml.edd.unarchive')) { return true; } return false; } /** * Determine if the given user can approve the given edd. * * @param UserPolicyInterface $authUser * * @return bool */ public function reject(UserPolicyInterface $authUser, Edd $edd) { if ($authUser->canDo('aml.edd.reject')) { return true; } return false; } }