Merge pull request #15782 from Toreg87/fixes/indentation_userscontroller

Fix Indentation in UsersController
This commit is contained in:
snipe 2024-11-13 21:21:40 +00:00 committed by GitHub
commit 73383c688e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,7 +288,6 @@ class UsersController extends Controller
$user->password = bcrypt($request->input('password'));
}
// Update the location of any assets checked out to this user
Asset::where('assigned_type', User::class)
->where('assigned_to', $user->id)
@ -296,7 +295,6 @@ class UsersController extends Controller
$permissions_array = $request->input('permission');
// Strip out the superuser permission if the user isn't a superadmin
if (! auth()->user()->isSuperUser()) {
unset($permissions_array['superuser']);