mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 09:05:37 +00:00
Fix code style: Change comments
This commit is contained in:
@ -81,7 +81,7 @@ class ViewAssetsController extends Controller
|
||||
// User has no subordinates, so they only see themselves
|
||||
$subordinates = collect([$authUser]);
|
||||
}
|
||||
}
|
||||
}//end foreach
|
||||
// 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([
|
||||
|
||||
Reference in New Issue
Block a user