Skip to content

Commit

Permalink
fix(admin): 管理员禁用某用户后,认证管理获取不到用户信息报错
Browse files Browse the repository at this point in the history
  • Loading branch information
HHHCODE committed Nov 23, 2018
1 parent 28cc3a3 commit 5b4cb7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/Admin/CertificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public function index(Request $request)
$query->whereHas('user', function ($query) use ($keyword) {
$query->where('name', 'like', sprintf('%%%s%%', $keyword));
});
}, function ($query) {
$query->whereHas('user');
})
->when($name, function ($query) use ($name) {
$query->where('certification_name', $name);
Expand Down

0 comments on commit 5b4cb7a

Please sign in to comment.