mirror of https://github.com/MISP/MISP
Small fix to the contact users form for org admins
parent
32eddc34a7
commit
f9d60d1b2c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue