public function getStores($group) { $stores = parent::getStores($group); $role = Mage::getSingleton('aitpermissions/role'); if ($role->isPermissionsEnabled()) { foreach ($stores as $storeId => $store) { if (!in_array($storeId, $role->getAllowedStoreviewIds())) { unset($stores[$storeId]); } } } return $stores; }