Fix Indentation in UsersController

The indentation in the update-function of the UsersController is partially wrong.
Fix this to avoid confusion.
This commit is contained in:
Tobias Regnery 2024-11-07 09:18:27 +01:00
parent a41529dbc4
commit 2db70379a6

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']);