summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-22 15:09:04 +0200
committerBjörn Geiger2011-08-22 15:09:04 +0200
commit819c1f1835f9358fd6a8f742b2e589f3d251f316 (patch)
treefc6687d40cbb9124dc6a846e516915bab3987e61 /application
parentminor (diff)
downloadpbs2-819c1f1835f9358fd6a8f742b2e589f3d251f316.tar.gz
pbs2-819c1f1835f9358fd6a8f742b2e589f3d251f316.tar.xz
pbs2-819c1f1835f9358fd6a8f742b2e589f3d251f316.zip
minor
Diffstat (limited to 'application')
-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){