chg: [events:publish] Improved phrasing on the publication blocking if creator == publisher

feature/publication-blocking-same-user
Sami Mokaddem 2023-12-18 10:10:45 +01:00
parent fc135af841
commit e900d37366
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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',