fix: [Training] Interesting link

- Someone just told us about fmylife.com - if this day continues like this I might have to post there about the development
pull/4313/head
iglocska 2019-03-14 14:28:49 +01:00
parent b1f37257c6
commit bdbba8d009
1 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
*/
class TrainingShell extends AppShell {
public $uses = array('User', 'Organisation');
public $uses = array('User', 'Organisation', 'Server');
private $__currentUrl = false;
private $__currentAuthKey = false;
@ -72,14 +72,14 @@ class TrainingShell extends AppShell {
$this->__report['servers'][$this->__currentUrl]['users'] = $this->__createUsers($remote_org_id, $role_id, $org, $id);
if (!empty($this->__config['create_sync_both_ways'])) {
$sync_user = $this->__addSyncUserRemotely();
$this->report['servers'][$this->__currentUrl['users']][] = $sync_user;
$this->__report['servers'][$this->__currentUrl]['users'][] = $sync_user;
$sync_server = $this->__addSyncConnectionLocally($this->__currentUrl, $org . '_misp', $remote_org_id, $sync_user);
if ($sync_server) {
$this->report['sync'][] = $sync_server;
$this->__report['sync'][] = $sync_server;
}
}
if (!empty($this->__config['create_admin_user'])) {
$this->report['servers'][$this->__currentUrl['users']][] = $this->__addAdminUserRemotely($i, $org, $remote_org_id);
$this->__report['servers'][$this->__currentUrl['users']][] = $this->__addAdminUserRemotely($i, $org, $remote_org_id);
}
if (!empty($this->__config['settings'])) {
foreach ($this->__config['settings'] as $key => $value)