A free open source IT asset/license management system
Removed debug lines
snipe45eda0f611ca
diff --git a/app/Models/Company.php b/app/Models/Company.phpindex 8f8e71ff5c..aac002bdcd 100644--- a/app/Models/Company.php+++ b/app/Models/Company.php@@ -262,7 +262,6 @@ final class Company extends SnipeModelif (! 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 userif (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 queryif (\Schema::hasColumn($query->getModel()->getTable(), $column)) {