1
0
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:
FreeScout 2020-11-15 06:56:28 -08:00
parent 5e59b7b561
commit b09ef174ab

View File

@ -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]);
}