mirror of https://github.com/MISP/MISP
Merge pull request #5207 from JakubOnderka/patch-33
fix: [internal] Just site admin can force when saving freetextpull/5845/head
commit
833af7c114
|
@ -3834,7 +3834,7 @@ class EventsController extends AppController
|
|||
$this->Event->insertLock($this->Auth->user(), $id);
|
||||
$attributes = json_decode($this->request->data['Attribute']['JsonObject'], true);
|
||||
$default_comment = $this->request->data['Attribute']['default_comment'];
|
||||
$force = $this->request->data['Attribute']['force'];
|
||||
$force = $this->_isSiteAdmin() && $this->request->data['Attribute']['force'];
|
||||
$flashMessage = $this->Event->processFreeTextDataRouter($this->Auth->user(), $attributes, $id, $default_comment, $force);
|
||||
$this->Flash->info($flashMessage);
|
||||
$this->redirect(array('controller' => 'events', 'action' => 'view', $id));
|
||||
|
|
Loading…
Reference in New Issue