diff options
| author | michael pereira | 2011-09-23 19:37:58 +0200 |
|---|---|---|
| committer | michael pereira | 2011-09-23 19:37:58 +0200 |
| commit | 8202d32287a9b95e82fcf88465d46466f00f827d (patch) | |
| tree | e5c84520408f2cb059e8358631ea43f505560771 | |
| parent | login test (diff) | |
| download | pbs2-8202d32287a9b95e82fcf88465d46466f00f827d.tar.gz pbs2-8202d32287a9b95e82fcf88465d46466f00f827d.tar.xz pbs2-8202d32287a9b95e82fcf88465d46466f00f827d.zip | |
personid
| -rw-r--r-- | application/modules/ipxe/controllers/ResourceController.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php index 840505d..36a0c86 100644 --- a/application/modules/ipxe/controllers/ResourceController.php +++ b/application/modules/ipxe/controllers/ResourceController.php @@ -18,13 +18,11 @@ class Ipxe_ResourceController extends Zend_Controller_Action public function init() { - if (Zend_Auth::getInstance()->hasIdentity()) { - $this->personmapper = new Application_Model_PersonMapper(); - $result = $this->personmapper->findBy(array('email' => Zend_Auth::getInstance()->getIdentity()),true); - $this->person = new Application_Model_Person($result[0]); - $this->person->setID($result[0]['personID']); + + $person = $this->_request->getParam('person'); + if (isset($person)) { $this->membershipMapper = new Application_Model_MembershipMapper(); - $this->memberships = $this->membershipMapper->findBy(array("personID" => $this->person->getID()),true); + $this->memberships = $this->membershipMapper->findBy(array("personID" => $person),true); } $this->_helper->layout->disableLayout(); |
