mirror of https://github.com/MISP/MISP
Typo in UsersController fixed
parent
78b3a1c0ed
commit
17b570ec1f
|
@ -175,7 +175,7 @@ class UsersController extends AppController {
|
|||
throw new NotFoundException(__('Invalid user'));
|
||||
}
|
||||
$this->set('user', $this->User->read(null, $id));
|
||||
if (!$this->_isSiteADmin && !($this->_isAdmin() && $this->Auth->user('org') == $this->User->data['User']['org'])) throw new MethodNotAllowedException();
|
||||
if (!$this->_isSiteAdmin() && !($this->_isAdmin() && $this->Auth->user('org') == $this->User->data['User']['org'])) throw new MethodNotAllowedException();
|
||||
$temp = $this->User->field('invited_by');
|
||||
$this->set('user2', $this->User->read(null, $temp));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue