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