mirror of https://github.com/MISP/MISP
Restricting the event log to show only proposals when selecting the contributions of an org
- the event changes that a proposal creation creates are also logged (such as disarming the proposal email lock) -> this should not be shown in this log view.pull/224/head
parent
ed77145108
commit
73159dd4e5
|
@ -84,7 +84,7 @@ class LogsController extends AppController {
|
|||
|
||||
|
||||
$conditions['OR'][] = array('AND' => array('Log.model LIKE' => 'Event', 'Log.model_id LIKE' => $id));
|
||||
if ($org) $conditions['AND'][] = array('Log.org LIKE' => $org);
|
||||
if ($org) $conditions['AND'][] = array('Log.org LIKE' => $org, 'Log.model LIKE' => 'ShadowAttribute');
|
||||
// if we are not the owners of the event and we aren't site admins, then we should only see the entries for attributes that are not private
|
||||
// This means that we will not be able to see deleted attributes - since those could have been private
|
||||
if (!$mayModify) {
|
||||
|
|
Loading…
Reference in New Issue