summaryrefslogtreecommitdiffstats
path: root/application/controllers/ResourceController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/ResourceController.php')
-rw-r--r--application/controllers/ResourceController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index 284253b..751e691 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -32,6 +32,7 @@ class ResourceController extends Zend_Controller_Action
//TODO Error Messages if something failed
$alpha = $this->_request->getParam('alpha');
$apikey = $this->_request->getParam('apikey');
+ $this->rightrolesMapper = new Application_Model_RightRolesMapper();
if($this->getRequest()->getActionName() == 'login') {
$email = $this->_request->getParam('email');
@@ -50,7 +51,6 @@ class ResourceController extends Zend_Controller_Action
if($apikey != ""){
$membershipMapper = new Application_Model_MembershipMapper();
$this->membership = new Application_Model_Membership();
- $this->rightrolesMapper = new Application_Model_RightRolesMapper();
list($this->membership) = $membershipMapper->findBy(array('apikey' => $apikey));
if($this->membership == null){