N
N
NeonovyiSvet2020-10-15 09:27:05
Frontend
NeonovyiSvet, 2020-10-15 09:27:05

How to check authorization?

How to check user authorization...?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
imdeveloper, 2020-10-28
@link_web

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customerSession = $objectManager->get('Magento\Customer\Model\Session');

if($customerSession->isLoggedIn()){

//Code

}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question