From 45eda0f611caac3c525bf1dca18e09bfde4c3c45 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 16 May 2024 15:09:27 +0100 Subject: [PATCH] Removed debug lines Signed-off-by: snipe --- app/Models/Company.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/Models/Company.php b/app/Models/Company.php index 8f8e71ff5c..aac002bdcd 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -262,7 +262,6 @@ final class Company extends SnipeModel if (! static::isFullMultipleCompanySupportEnabled() || (Auth::check() && Auth::user()->isSuperUser()) || (! Auth::check())) { return $query; } else { - \Log::debug('Fire scopeCompanyablesDirectly.'); return static::scopeCompanyablesDirectly($query, $column, $table_name); } } @@ -275,7 +274,6 @@ final class Company extends SnipeModel { // Get the company ID of the logged in user, or set it to null if there is no company assicoated with the user if (Auth::user()) { - \Log::debug('Admin company is: '.Auth::user()->company_id); $company_id = Auth::user()->company_id; } else { $company_id = null; @@ -283,9 +281,6 @@ final class Company extends SnipeModel // Dynamically get the table name if it's not passed in, based on the model we're querying against $table = ($table_name) ? $table_name."." : $query->getModel()->getTable()."."; - \Log::debug('Model is: '.$query->getModel()); - - \Log::debug('Table is: '.$table); // If the column exists in the table, use it to scope the query if (\Schema::hasColumn($query->getModel()->getTable(), $column)) {