Update account history query (#4237)

This will limit the action_log records displayed when a user is viewing
their own assets and history since both target_type and target_id must
be set for a where condition to be added to the history query.
This commit is contained in:
Geoff Young 2017-10-17 23:39:49 -04:00 committed by snipe
parent aa7091d962
commit 665a113ed8

View file

@ -230,7 +230,7 @@ View Assets for {{ $user->present()->fullName() }}
id="table"
data-cookie="false"
data-cookie-id-table="userHistoryTable-{{ config('version.hash_version') }}"
data-url="{{route('api.activity.index', ['user_id' => $user->id, 'order' => 'desc']) }}">
data-url="{{route('api.activity.index', ['target_id' => $user->id, 'target_type' => 'User', 'order' => 'desc']) }}">
<thead>
<tr>
<th data-field="icon" style="width: 40px;" class="hidden-xs" data-formatter="iconFormatter"></th>