Skip to content

Commit 91b5112

Browse files
committed
updated enquiry
1 parent d48e569 commit 91b5112

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: app/Http/Controllers/Core/EnquiryController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function index(Request $request, Enquiry $enquiry)
3434
->orWhere('email', 'like', "%{$request->filter}%");
3535
}
3636

37-
if ($request->filled('status') && auth('admins')->check()) {
37+
if ($request->filled('status')) {
3838
if ($request->status == 'Open') {
3939
$enquiry->where('status', '<>', StatusEnum::RESOLVED->value);
4040
} else {

Diff for: app/Models/Core/Log.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected static function booted()
110110
{
111111
parent::booted();
112112
static::creating(function ($model) {
113-
if (empty($model->admin_id) && auth('admins')->check()) {
113+
if (empty($model->admin_id) && is_admin()) {
114114
$model->admin_id = current_user()->id ?? null;
115115
}
116116
});

0 commit comments

Comments
 (0)