add: [upload_stix] Added the `galaxy_editor` permission condition on the `upload_stix` form to view the Galaxies 2.0 related checkbox

pull/9044/head
Christian Studer 2023-04-19 16:36:04 +02:00
parent 148bc21b5c
commit 0de2eea029
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
<div class="events form">
<?php
echo $this->Form->create('Event', array('type' => 'file'));
echo $this->Form->create('Event', array('type' => 'file'));
?>
<fieldset>
<legend><?= __('Import STIX %s file', $stix_version); ?></legend>
@ -23,14 +23,14 @@
'checked' => true,
'label' => __('Include the original imported file as attachment')
));
?>
<div class="input clear"></div>
<?php
echo $this->Form->input('galaxies_parsing', array(
'checked' => false,
'label' => __('Use Galaxies 2.0')
));
if ($me['Role']['perm_admin'] || $me['Role']['perm_site_admin']) {
if ($me['Role']['perm_site_admin'] || $me['Role']['perm_galaxy_editor']) {
echo '<div class="input clear"></div>';
echo $this->Form->input('galaxies_parsing', array(
'checked' => false,
'label' => __('Use Galaxies 2.0')
));
}
if ($me['Role']['perm_site_admin']) {
echo '<div class="input clear"></div>';
echo $this->Form->input('debug', array(
'checked' => true,