Fix roles notification
This commit is contained in:
parent
391436c455
commit
6a11341c0a
|
@ -316,7 +316,8 @@ class UserController extends Controller
|
||||||
->line(new HtmlString($data['content']));
|
->line(new HtmlString($data['content']));
|
||||||
}
|
}
|
||||||
$all = $data['all'] ?? false;
|
$all = $data['all'] ?? false;
|
||||||
if(!$data["roles"]){
|
$roles = $data['roles'] ?? false;
|
||||||
|
if(!$roles){
|
||||||
$users = $all ? User::all() : User::whereIn('id', $data['users'])->get();
|
$users = $all ? User::all() : User::whereIn('id', $data['users'])->get();
|
||||||
} else{
|
} else{
|
||||||
$users = User::role($data["roles"])->get();
|
$users = User::role($data["roles"])->get();
|
||||||
|
|
Loading…
Reference in a new issue