mirror of https://github.com/MISP/MISP
If a user is disabled then he should not receive mass admin e-mails
- however, if an admin specifically chooses to e-mail him/her it will still workpull/1001/head
parent
d5c5ad0016
commit
95ac7ad294
|
@ -936,6 +936,7 @@ class UsersController extends AppController {
|
|||
$conditions = array();
|
||||
if (!$this->_isSiteAdmin()) $conditions = array('org_id' => $this->Auth->user('org_id'));
|
||||
if ($this->request->data['User']['recipient'] != 1) $conditions['id'] = $this->request->data['User']['recipientEmailList'];
|
||||
else $conditions['AND'][] = array('User.disabled' => 0);
|
||||
$users = $this->User->find('all', array('recursive' => -1, 'order' => array('email ASC'), 'conditions' => $conditions));
|
||||
$this->request->data['User']['message'] = $this->User->adminMessageResolve($this->request->data['User']['message']);
|
||||
$failures = '';
|
||||
|
|
Loading…
Reference in New Issue