mirror of https://github.com/MISP/MISP
chg: [events:publish] Improved phrasing on the publication blocking if creator == publisher
parent
fc135af841
commit
e900d37366
|
@ -3210,7 +3210,7 @@ class EventsController extends AppController
|
|||
Configure::read('MISP.block_publishing_for_same_creator', false) &&
|
||||
$this->Auth->user()['id'] == $event['Event']['user_id']
|
||||
) {
|
||||
$message = __('Could not publish event, the user cannot be the same as the event creator');
|
||||
$message = __('Could not publish the event, the publishing user cannot be the same as the event creator as per this instance\'s configuration.');
|
||||
if (!$this->_isRest()) {
|
||||
$this->Flash->error($message);
|
||||
}
|
||||
|
|
|
@ -6137,7 +6137,7 @@ class Server extends AppModel
|
|||
],
|
||||
'block_publishing_for_same_creator' => [
|
||||
'level' => self::SETTING_OPTIONAL,
|
||||
'description' => __('Enable this setting will make MISP blocks publishing if the publisher is the same as the event creator'),
|
||||
'description' => __('Enabling this setting will make MISP block event publishing in the case of the publisher being the same user as the event creator.'),
|
||||
'value' => false,
|
||||
'test' => 'testBool',
|
||||
'type' => 'boolean',
|
||||
|
|
Loading…
Reference in New Issue