If user information is not provided in a system update (for example when users update), then dont zap system_users
This commit is contained in:
parent
9376c6de11
commit
c1a1797778
@ -49,10 +49,12 @@ class SystemController extends Controller
|
||||
->transform(function($item) { $item['active'] = Arr::get($item,'active',FALSE); return $item; });
|
||||
|
||||
$o->mailers()->sync($mailers);
|
||||
if ($request->post('users') && array_filter($request->post('users'),function($item) { return $item; }))
|
||||
if ($request->post('users')) {
|
||||
if (array_filter($request->post('users'),function($item) { return $item; }))
|
||||
$o->users()->sync($request->post('users'));
|
||||
else
|
||||
$o->users()->detach();
|
||||
}
|
||||
|
||||
return redirect()->to('system');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user