3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-06 08:55:25 +00:00

Fix code style: Change comments

This commit is contained in:
Lukas Kraic
2025-06-05 18:53:36 +02:00
parent c50c97d149
commit ad6fe855a9

View File

@ -81,7 +81,7 @@ class ViewAssetsController extends Controller
// User has no subordinates, so they only see themselves
$subordinates = collect([$authUser]);
}
}//end foreach
}//end if
// If the user has subordinates and a user_id is provided in the request
if ($subordinates->count() > 1 && $request->filled('user_id')) {
$requestedUserId = (int) $request->input('user_id');
@ -92,7 +92,7 @@ class ViewAssetsController extends Controller
}
// If invalid ID or not authorized, $selectedUserId remains $authUser->id (default)
}
}
}//end if
// Load the data for the user to be viewed (either auth user or selected subordinate)
$userToView = User::with([