mirror of https://github.com/MISP/MISP
parent
e0a18896e0
commit
1c3ca8909b
|
@ -161,6 +161,9 @@ class UsersController extends AppController {
|
|||
public function admin_add() {
|
||||
if ($this->request->is('post')) {
|
||||
$this->User->create();
|
||||
// set invited by
|
||||
debug($this->request->data['User']);
|
||||
$this->request->data['User']['invited_by'] = $this->Auth->user('id');
|
||||
if ($this->User->save($this->request->data)) {
|
||||
$this->Session->setFlash(__('The user has been saved'));
|
||||
$this->redirect(array('action' => 'index'));
|
||||
|
|
Loading…
Reference in New Issue