Fix roles notification

This commit is contained in:
1day2die 2024-03-14 14:40:08 +01:00
parent 391436c455
commit 6a11341c0a

View file

@ -316,7 +316,8 @@ class UserController extends Controller
->line(new HtmlString($data['content']));
}
$all = $data['all'] ?? false;
if(!$data["roles"]){
$roles = $data['roles'] ?? false;
if(!$roles){
$users = $all ? User::all() : User::whereIn('id', $data['users'])->get();
} else{
$users = User::role($data["roles"])->get();