Skip to content

A free open source IT asset/license management system

Removed logging

snipec1f1ae6b64f4
diff --git a/app/Http/Controllers/CompaniesController.php b/app/Http/Controllers/CompaniesController.php
index b1f01bc599..db6118d37f 100644
--- a/app/Http/Controllers/CompaniesController.php
+++ b/app/Http/Controllers/CompaniesController.php
@@ -83,8 +83,6 @@ final class CompaniesController extends Controller
public function edit(Company $company) : View | RedirectResponse
{
$this->authorize('update', $company);
- Company::isCurrentUserHasAccess($company);
- // $company = Company::scopeCompanyables($company, 'id', 'companies');
return view('companies/edit')->with('item', $company);
}
diff --git a/app/Models/Company.php b/app/Models/Company.php
index d20722b634..9966a32d26 100644
--- a/app/Models/Company.php
+++ b/app/Models/Company.php
@@ -168,10 +168,7 @@ final class Company extends SnipeModel
// Set this to check companyable on company
if ($companyable instanceof Company) {
- \Log::error('This is a company!');
$companyable_company_id = $companyable->id;
- \Log::error('Companyable object ID: '.$companyable_company_id);
- \Log::error('User company ID: '.$current_user_company_id);
}
return ($current_user_company_id == null) || ($current_user_company_id == $companyable_company_id) || auth()->user()->isSuperUser();
}