mirror of https://github.com/MISP/MISP
Bug with adding an event and the org being set incorrectly
parent
cb3ac8be15
commit
90dd14808d
|
@ -419,7 +419,7 @@ class EventsController extends AppController {
|
|||
// force check userid and orgname to be from yourself
|
||||
$auth = $this->Auth;
|
||||
$data['Event']['user_id'] = $auth->user('id');
|
||||
if ($this->checkAction('perm_sync')) $data['Event']['org'] = Configure::read('CyDefSIG.sync');
|
||||
if ($this->checkAction('perm_sync')) $data['Event']['org'] = Configure::read('CyDefSIG.org');
|
||||
else $data['Event']['org'] = $auth->user('org');
|
||||
if (!$fromXml) {
|
||||
$data['Event']['orgc'] = $data['Event']['org'];
|
||||
|
|
Loading…
Reference in New Issue