16 self::fillSystemPermissions();
23 private static function fillSystemPermissions() :void
30 $oldRolesList = RoleTable::getList([
'select' => [
'ID',
'XML_ID']])->fetchAll();
31 $xmlIds = array_flip(array_column($oldRolesList,
'XML_ID'));
32 foreach ($map as $roleKey => $permissions)
36 $roleId = isset($xmlIds[$roleKey])
37 ? $oldRolesList[$xmlIds[$roleKey]][
'ID']