mirror of https://github.com/MISP/MISP
chg: [appmodel] New entry to create an upper bound for the unwanted
action through login This will be used by recovery scriptspull/6322/head
parent
164963100a
commit
8e6b5ecb44
|
@ -86,6 +86,7 @@ class AppModel extends Model
|
|||
39 => false, 40 => false, 41 => false, 42 => false, 43 => false, 44 => false,
|
||||
45 => false, 46 => false, 47 => false, 48 => false, 49 => false, 50 => false,
|
||||
51 => false, 52 => false, 53 => false, 54 => false, 55 => false, 56 => false,
|
||||
57 => false,
|
||||
);
|
||||
|
||||
public $advanced_updates_description = array(
|
||||
|
@ -1413,6 +1414,9 @@ class AppModel extends Model
|
|||
$sqlArray[] = "RENAME TABLE `event_blacklists` TO `event_blocklists`;";
|
||||
$sqlArray[] = "RENAME TABLE `whitelist` TO `allowedlist`;";
|
||||
break;
|
||||
case 57:
|
||||
$sqlArray[] = sprintf("INSERT INTO `admin_settings` (`setting`, `value`) VALUES ('fix_login', %s);", time());
|
||||
break;
|
||||
case 'fixNonEmptySharingGroupID':
|
||||
$sqlArray[] = 'UPDATE `events` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||
$sqlArray[] = 'UPDATE `attributes` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||
|
|
Loading…
Reference in New Issue