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
iglocska 2014-02-26 14:14:59 +01:00
parent ed77145108
commit 73159dd4e5
1 changed files with 1 additions and 1 deletions

View File

@ -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) {