mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
rm conditional that might be unnecessary
This commit is contained in:
parent
cc3b8e0681
commit
ec863df007
|
@ -266,11 +266,11 @@ class UsersController extends Controller
|
||||||
$user->location_id = $request->input('location_id', null);
|
$user->location_id = $request->input('location_id', null);
|
||||||
if ($request->has('company_id')) {
|
if ($request->has('company_id')) {
|
||||||
if ($user->assets->count() > 0) {
|
if ($user->assets->count() > 0) {
|
||||||
if ($user->assets()->pluck('company_id') != $user->getRawOriginal('company_id')) {
|
//if ($user->assets()->pluck('company_id') != $user->getRawOriginal('company_id')) {
|
||||||
{
|
{
|
||||||
return back()->with('error', 'this user has assets, check them in first');
|
return back()->with('error', 'this user has assets, check them in first');
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$user->company_id = Company::getIdForUser($request->input('company_id', null));
|
$user->company_id = Company::getIdForUser($request->input('company_id', null));
|
||||||
|
|
Loading…
Reference in a new issue