public function detailsAction()
 {
     // set up the mappers and
     // get user and store info from database
     $this->getStoreAndUser();
     // check priveleges
     if (!$this->_acl->isAllowed($this->user, $this->store, 'manage')) {
         $this->errorAndRedirect('You do not have priveleges to manage that store');
     }
     // get shipping addresses for store
     $shippingMapper = new Application_Model_Mapper_Stores_ShippingAddressesMapper();
     $this->store->shippingAddresses = $shippingMapper->getShippingAddressesForStoreID($this->store->storeID);
     // get the default shipping address if it exists
     $defaultShipping = null;
     foreach ($this->store->shippingAddresses as $address) {
         if ($address->shippingAddressID == $this->store->defaultShippingAddressID) {
             $defaultShipping = $address;
         }
     }
     $this->store->defaultShippingAddress = $defaultShipping;
     // get list of users for this store
     $linksMapper = new Application_Model_Mapper_Stores_StoresUsersLinksMapper();
     $options = array('include' => array('linkRole', 'username'));
     $this->store->userLinks = $linksMapper->fetchUserLinksForStoreID($this->store->storeID, $options);
     // send store to the view
     $this->view->store = $this->store;
 }