Fix roles notification
This commit is contained in:
parent
391436c455
commit
6a11341c0a
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue