Skip to content

Commit c763824

Browse files
authored
Merge pull request #469 from dbarzin/dev
fix audit log
2 parents 9fe3228 + 606379a commit c763824

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/Http/Controllers/AuditLogsController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ public function history(string $type, int $id)
6565
);
6666

6767
// Set the object type
68-
if ($type=='bob')
68+
if ($type == 'bob')
6969
$type = 'App\Models\Control';
70-
elseif ($type='alice')
70+
elseif ($type =='alice')
7171
$type = 'App\Models\Measure';
72-
elseif ($type='action')
72+
elseif ($type == 'action')
7373
$type = 'App\Models\Action';
74-
elseif ($type='user')
74+
elseif ($type == 'user')
7575
$type = 'App\Models\User';
7676
else
7777
abort(404, 'Not found');

resources/views/logs/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class="table striped row-hover cell-border"
6969
{{ $log->subject_id }}
7070
</a>
7171
@elseif ($log->subject_type=='App\\Models\\User')
72-
<a href="/user/show/{{ $log->subject_id }} ">
72+
<a href="/users/{{ $log->subject_id }} ">
7373
{{ $log->subject_id }}
7474
</a>
7575
@else

0 commit comments

Comments
 (0)