mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-24 19:33:07 +01:00
Do not show deleted users when creating a new mailbox - closes #866
This commit is contained in:
parent
5e59b7b561
commit
b09ef174ab
@ -51,7 +51,7 @@ class MailboxesController extends Controller
|
||||
{
|
||||
$this->authorize('create', 'App\Mailbox');
|
||||
|
||||
$users = User::where('role', '!=', User::ROLE_ADMIN)->get();
|
||||
$users = User::nonDeleted()->where('role', '!=', User::ROLE_ADMIN)->get();
|
||||
|
||||
return view('mailboxes/create', ['users' => $users]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user