Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Si pas loggué... accès à tout.... #19

Open
Elyos59 opened this issue Jul 19, 2021 · 0 comments
Open

Si pas loggué... accès à tout.... #19

Elyos59 opened this issue Jul 19, 2021 · 0 comments

Comments

@Elyos59
Copy link

Elyos59 commented Jul 19, 2021

Hello!

Voir titre...

Du coup, je sais pas si c'est normal mais j'ai modifié dans BaseCustomerFamilyPlusLoopExtend.php

public function getCustomerFamilyPlus()
    {
        $currentCustomer = $this->securityContext->getCustomerUser();

        if (null !== $currentCustomer) {
			$customerFamilyPlus = CustomerFamilyPlusQuery::create()
            ->useCustomerCustomerFamilyPlusQuery()
                ->filterByCustomerId($currentCustomer->getId())
            ->endUse()
            ->findOne();
		}
			
		if (null === $currentCustomer || null === $customerFamilyPlus) {
            return CustomerFamilyPlusQuery::create()
				->filterByIsDefault(1)
				->findOne();
        }

        return $customerFamilyPlus;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant