mirror of https://github.com/MISP/MISP
Not finished editing -> not published
parent
5907c86520
commit
4bbbfc36c3
|
@ -551,7 +551,7 @@ class EventsController extends AppController {
|
|||
|
||||
$rules= array();
|
||||
|
||||
// find events that are finished
|
||||
// find events that are published
|
||||
$events = $this->Event->findAllByAlerted(1);
|
||||
$classtype = 'targeted-attack';
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<?php
|
||||
if (0 == $event['Event']['alerted'] && ($isAdmin || $event['Event']['org'] == $me['org']))
|
||||
echo $this->Form->postLink('Publish Event', array('action' => 'alert', $event['Event']['id']), null, 'Are you sure this event is complete and everyone should be alerted?');
|
||||
elseif (0 == $event['Event']['alerted']) echo 'Not finished editing';
|
||||
elseif (0 == $event['Event']['alerted']) echo 'Not published';
|
||||
?>
|
||||
<?php
|
||||
if ($isAdmin || $event['Event']['org'] == $me['org']) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
echo $this->Form->postLink('Publish Event', array('action' => 'alert', $event['Event']['id']), null, 'Are you sure this event is complete and everyone should be alerted?');
|
||||
?> </li></ul>
|
||||
<?php elseif (0 == $event['Event']['alerted']): ?>
|
||||
<ul><li>Not finished editing</li></ul>
|
||||
<ul><li>Not published</li></ul>
|
||||
<?php else: ?>
|
||||
<!-- ul><li>Alert already sent</li></ul -->
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Reference in New Issue