summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers
diff options
context:
space:
mode:
authormichael pereira2011-09-23 19:37:58 +0200
committermichael pereira2011-09-23 19:37:58 +0200
commit8202d32287a9b95e82fcf88465d46466f00f827d (patch)
treee5c84520408f2cb059e8358631ea43f505560771 /application/modules/ipxe/controllers
parentlogin test (diff)
downloadpbs2-8202d32287a9b95e82fcf88465d46466f00f827d.tar.gz
pbs2-8202d32287a9b95e82fcf88465d46466f00f827d.tar.xz
pbs2-8202d32287a9b95e82fcf88465d46466f00f827d.zip
personid
Diffstat (limited to 'application/modules/ipxe/controllers')
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php10
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();