From 424cbd324880a8c1e367a5cb0eea10d5df189bc4 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 18 Apr 2024 14:25:54 +0100 Subject: [PATCH] Removed noisy debug Signed-off-by: snipe --- app/Models/Company.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Models/Company.php b/app/Models/Company.php index 567680d8f6..4b718b4200 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -260,7 +260,6 @@ final class Company extends SnipeModel { // If not logged in and hitting this, assume we are on the command line and don't scope?' if (! static::isFullMultipleCompanySupportEnabled() || (Auth::check() && Auth::user()->isSuperUser()) || (! Auth::check())) { - \Log::debug('Skip scoping in scopeCompanyableChildren. User is not logged in or is a superadmin'); return $query; } else { \Log::debug('Fire scopeCompanyablesDirectly.'); @@ -313,7 +312,6 @@ final class Company extends SnipeModel if (count($companyable_names) == 0) { throw new Exception('No Companyable Children to scope'); } elseif (! static::isFullMultipleCompanySupportEnabled() || (Auth::check() && Auth::user()->isSuperUser())) { - \Log::debug('Skip scoping in scopeCompanyableChildren. User is not logged in or is a superadmin'); return $query; } else { $f = function ($q) {