Skip to content

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

@Elyos59

Description

@Elyos59

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;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions