A free open source IT asset/license management system
Commenting on a scope in Models/Company.php
akemidx133d6ffa50cf
diff --git a/app/Models/Company.php b/app/Models/Company.phpindex 83b6a0670b..273a02ad0d 100644--- a/app/Models/Company.php+++ b/app/Models/Company.php@@ -73,6 +73,10 @@ final class Company extends SnipeModel}}+ /**+ * Adding scope to table queires, where only authorized users will be able to see a company's ID value+ *+ */private static function scopeCompanyablesDirectly($query, $column = 'company_id', $table_name = null){if (Auth::user()) {