Permalink
Browse files

Set customer group id on session to 0 on login with inactive account

  • Loading branch information...
1 parent 1038482 commit 673642cc5e3f6c4d7bff5cc48d9c8142cd41204b @Vinai committed Oct 16, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/code/community/Netzarbeiter/CustomerActivation/Model/Observer.php
@@ -47,7 +47,9 @@ public function customerLogin($observer)
/*
* Fake the old logout() method without deleting the session and all messages
*/
- $session->setCustomer(Mage::getModel('customer/customer'))->setId(null);
+ $session->setCustomer(Mage::getModel('customer/customer'))
+ ->setId(null)
+ ->setCustomerGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID);
if ($this->_checkRequestRoute('customer', 'account', 'createpost')) {
/*

0 comments on commit 673642c

Please sign in to comment.