Small fix to the contact users form for org admins

pull/854/head
Iglocska 2016-01-12 15:36:58 +01:00
parent 32eddc34a7
commit f9d60d1b2c
1 changed files with 1 additions and 1 deletions

View File

@ -938,7 +938,7 @@ class UsersController extends AppController {
else $this->Session->setFlash(__('E-mails sent.'));
}
$conditions = array();
if (!$this->_isSiteAdmin()) $conditions = array('org' => $this->Auth->user('org_id'));
if (!$this->_isSiteAdmin()) $conditions = array('org_id' => $this->Auth->user('org_id'));
$temp = $this->User->find('all', array('recursive' => -1, 'fields' => array('id', 'email'), 'order' => array('email ASC'), 'conditions' => $conditions));
$emails = array();
$gpgKeys = array();